One Logo Pool Ball
USDKit · IOS API REFERENCE

USDValue.Vec3d

struct · iOS 27.0+ · SDK 27.1

@frozen struct Vec3d

A 3-component double-precision vector.

Members (13)

get · iOS 27.0+

description

TypeScript
get description(): string
Swift declaration
var description: String { get }

A textual representation of this instance. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(describing:)` initializer. This initializer works with any type, and uses the custom `description` property for types that conform to `CustomStringConvertible`: struct Point: CustomStringConvertible { let x: Int, y: Int var description: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(describing: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `description` property.

get · iOS 27.0+

x

TypeScript
get x(): number
Swift declaration
var x: Double { get set }
set · iOS 27.0+

x

TypeScript
set x(value: number)
Swift declaration
var x: Double { get set }
get · iOS 27.0+

y

TypeScript
get y(): number
Swift declaration
var y: Double { get set }
set · iOS 27.0+

y

TypeScript
set y(value: number)
Swift declaration
var y: Double { get set }
get · iOS 27.0+

z

TypeScript
get z(): number
Swift declaration
var z: Double { get set }
set · iOS 27.0+

z

TypeScript
set z(value: number)
Swift declaration
var z: Double { get set }
get · iOS 27.0+

simd

TypeScript
get simd(): SDKHandle
Swift declaration
var simd: SIMD3<Double> { get }

The vector as a `SIMD3<Double>`.

get · iOS 27.0+

valueType

TypeScript
static get valueType(): USDPrim_Attribute_ValueType
Swift declaration
static var valueType: USDPrim.Attribute.ValueType { get }
init · iOS 27.0+

init

TypeScript
static init(): USDValue_Vec3d
Swift declaration
init()

Creates a zero vector.

init · iOS 27.0+

init

TypeScript
static init29309(x: number, y: number, z: number): USDValue_Vec3d
Swift declaration
init(_ x: Double, _ y: Double, _ z: Double)

Creates a vector with the given components.

init · iOS 27.0+

init

TypeScript
static init58297(simd: SDKHandle): USDValue_Vec3d
Swift declaration
init(_ simd: SIMD3<Double>)

Creates a vector from a `SIMD3<Double>`.

subscript · iOS 27.0+

subscript

TypeScript
subscript(index: number): number
Swift declaration
subscript(index: Int) -> Double { get set }

Accesses the component at the specified index.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

USDValue.Vec3d.init(arrayLiteral:)

A variable number of Swift arguments is not supported.

All USDKit types →