isFinite
TypeScriptget isFinite(): booleanSwift declarationvar isFinite: Bool { get }struct · iOS 26.0+ · SDK 27.1
struct Vector3DFloatget isFinite(): booleanSwift declarationvar isFinite: Bool { get }get isNaN(): booleanSwift declarationvar isNaN: Bool { get }get isZero(): booleanSwift declarationvar isZero: Bool { get }static get infinity(): Vector3DFloatSwift declarationstatic let infinity: Vector3DFloatstatic get zero(): Vector3DFloatSwift declarationstatic let zero: Vector3DFloatget vector(): SDKHandleSwift declarationvar vector: simd_float3 { get set }set vector(value: SDKHandle)Swift declarationvar vector: simd_float3 { get set }get x(): numberSwift declarationvar x: Float { get set }set x(value: number)Swift declarationvar x: Float { get set }get y(): numberSwift declarationvar y: Float { get set }set y(value: number)Swift declarationvar y: Float { get set }get z(): numberSwift declarationvar z: Float { get set }set z(value: number)Swift declarationvar z: Float { get set }static initVector(vector: SDKHandle): Vector3DFloatSwift declarationinit(vector: simd_float3)get normalized(): Vector3DFloatSwift declarationvar normalized: Vector3DFloat { get }Returns this vector with a length of `1`.
static smoothstep(edge0: Vector3DFloat, edge1: Vector3DFloat, x: Vector3DFloat): Vector3DFloatSwift declarationstatic func smoothstep(edge0: Vector3DFloat, edge1: Vector3DFloat, x: Vector3DFloat) -> Vector3DFloatReturns a Spatial vector that represents the smooth interpolation at `x` between two vectors. - Parameter edge0: The lower edge of the interpolation function. - Parameter edge1: The upper edge of the interpolation function. - Parameter x: The value that the function interpolates at. - Returns: A new vector with each element set to `0` if `x <= edge0`, `1` if `x >= edge1`, and a Hermite interpolation between `0` and `1` if `edge0 < x < edge1`.
unapplying(scaledPose: ScaledPose3DFloat): Vector3DFloatSwift declarationfunc unapplying(_ scaledPose: ScaledPose3DFloat) -> Vector3DFloatReturns the primitive that results from unapplying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.
unapplying3669(transform: AffineTransform3DFloat): Vector3DFloatSwift declarationfunc unapplying(_ transform: AffineTransform3DFloat) -> Vector3DFloatReturns the vector that results from unapplying an affine transform to the vector. - Parameter transform: The affine transform. - Returns The transformed primitive.
unapplying57954(transform: ProjectiveTransform3DFloat): Vector3DFloatSwift declarationfunc unapplying(_ transform: ProjectiveTransform3DFloat) -> Vector3DFloatReturns the vector that results from unapplying a projective transform to the vector. - Parameter transform: The projective transform. - Returns The transformed primitive.
unapplying76453(pose: Pose3DFloat): Vector3DFloatSwift declarationfunc unapplying(_ pose: Pose3DFloat) -> Vector3DFloatReturns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.
get description(): stringSwift declarationvar 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 customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }The custom mirror for this instance.
get lengthSquared(): numberSwift declarationvar lengthSquared: Float { get }uniformlyScaled(scale: number): Vector3DFloatSwift declarationfunc uniformlyScaled(by scale: Float) -> Vector3DFloatReturns the entity uniformly scaled by the specified scalar value. - Parameter scale: The value that defines that scale. - Returns The scaled vector.
static initXYZ(x?: number, y?: number, z?: number): Vector3DFloatSwift declarationinit(x: Float = 0, y: Float = 0, z: Float = 0)Returns a vector from the specified values. - Parameter x: The first element of the vector. - Parameter y: The second element of the vector. - Parameter z: The third element of the vector.
static initXYZ67034(x: number, y: number, z: number): Vector3DFloatSwift declarationinit<T>(x: T, y: T, z: T) where T : BinaryFloatingPointReturns a new vector from the doubleing-point values. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
static get up(): Vector3DFloatSwift declarationstatic let up: Vector3DFloatA vector with values `[0, 1, 0]`.
dot(other: Vector3DFloat): numberSwift declarationfunc dot(_ other: Vector3DFloat) -> FloatReturns the dot product of this vector and the specified vector.
static lerp(from: Vector3DFloat, to: Vector3DFloat, t: Vector3DFloat): Vector3DFloatSwift declarationstatic func lerp(from: Vector3DFloat, to: Vector3DFloat, t: Vector3DFloat) -> Vector3DFloatReturns a Spatial vector that represents the linear interpolation at `t` between two vectors. - Parameter from: The starting vector. - Parameter to: The ending vector. - Parameter t: The value, between `0` and `1`, that the function interpolates at. - Returns: A new rotation. When `t=0`, the result is the `from` vector. When `t=1.0`, the result is the `to` vector. For any other value of `t`, the result is a linear linear interpolation between the two vectors.
cross(other: Vector3DFloat): Vector3DFloatSwift declarationfunc cross(_ other: Vector3DFloat) -> Vector3DFloatReturns the cross product of this vector and the specified vector.
static get right(): Vector3DFloatSwift declarationstatic let right: Vector3DFloatA vector with values `[1, 0, 0]`.
get length(): numberSwift declarationvar length: Float { get }scaled(size: Size3DFloat): Vector3DFloatSwift declarationfunc scaled(by size: Size3DFloat) -> Vector3DFloatReturns the vector scaled by the specified size. - Parameter size: The size structure that defines that scale. - Returns The scaled vector.
static get forward(): Vector3DFloatSwift declarationstatic let forward: Vector3DFloatA vector with values `[0, 0, 1]`.
rotatedBy(rotation: Rotation3DFloat): Vector3DFloatSwift declarationfunc rotated(by rotation: Rotation3DFloat) -> Vector3DFloatReturns the vector rotated by the specified rotation around the origin. - Parameter rotation: The rotation. - Returns The rotated vector.
rotatedBy24026(quaternion: SDKHandle): Vector3DFloatSwift declarationfunc rotated(by quaternion: simd_quatf) -> Vector3DFloatReturns the vector rotated by the specified quaternion around the origin. - Parameter quaternion: The quaternion that defines the rotation. - Returns The rotated vector.
sheared(shear: AxisWithFactors): Vector3DFloatSwift declarationfunc sheared(_ shear: AxisWithFactors) -> Vector3DFloatReturns a sheared vector. - Parameter shear: The axis and shear factors. - Returns The sheared vector.
applying(scaledPose: ScaledPose3DFloat): Vector3DFloatSwift declarationfunc applying(_ scaledPose: ScaledPose3DFloat) -> Vector3DFloatReturns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.
applying41255(transform: AffineTransform3DFloat): Vector3DFloatSwift declarationfunc applying(_ transform: AffineTransform3DFloat) -> Vector3DFloatReturns the vector that results from applying an affine transform to the vector. - Parameter transform: The affine transform. - Returns The transformed primitive.
applying64228(transform: ProjectiveTransform3DFloat): Vector3DFloatSwift declarationfunc applying(_ transform: ProjectiveTransform3DFloat) -> Vector3DFloatReturns the vector that results from applying a projective transform to the vector. - Parameter transform: The projective transform. - Returns The transformed primitive.
applying20519(pose: Pose3DFloat): Vector3DFloatSwift declarationfunc applying(_ pose: Pose3DFloat) -> Vector3DFloatReturns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.
rotation(other: Vector3DFloat): Rotation3DFloatSwift declarationfunc rotation(to other: Vector3DFloat) -> Rotation3DFloatReturns the rotation from the normalized first vector to the normalized second vector.
scaledBy(x?: number, y?: number, z?: number): Vector3DFloatSwift declarationfunc scaledBy(x: Float = 1, y: Float = 1, z: Float = 1) -> Vector3DFloatReturns the vector scaled by the specified values. - Parameter x: The scale factor on the `x` dimension. - Parameter y: The scale factor on the `y` dimension. - Parameter z: The scale factor on the `z` dimension. - Returns The scaled vector.
normalize(): voidSwift declarationmutating func normalize()Normalizes the vector.
projected(other: Vector3DFloat): Vector3DFloatSwift declarationfunc projected(_ other: Vector3DFloat) -> Vector3DFloatReturns this vector projected onto the specified vector.
reflected(normal: Vector3DFloat): Vector3DFloatSwift declarationfunc reflected(_ normal: Vector3DFloat) -> Vector3DFloatReturns the reflection direction of this incident vector and the specified unit normal vector.
static init(axis: RotationAxis3DFloat): Vector3DFloatSwift declarationinit(_ axis: RotationAxis3DFloat)Returns a new vector from a rotation axis. - Parameter axis: The source rotation axis.
static init47528(coords: SphericalCoordinates3DFloat): Vector3DFloatSwift declarationinit(_ coords: SphericalCoordinates3DFloat)Creates a new vector structure that contains the spherical coordinates converted to Cartesian coordinates. - Parameter coords: The spherical coordinates.
static init68627(size: Size3DFloat): Vector3DFloatSwift declarationinit(_ size: Size3DFloat)Returns a new vector from a size. - Parameter size: The source size.
static init42463(point: Point3DFloat): Vector3DFloatSwift declarationinit(_ point: Point3DFloat)Returns a new vector from a point. - Parameter point: The source point.
static init26095(vector: Vector3D): Vector3DFloatSwift declarationinit(_ vector: Vector3D)Returns a single-precision vector from a double-precision vector.
static init55921(xyz: SDKHandle): Vector3DFloatSwift declarationinit(_ xyz: simd_double3)Returns a vector point from a single-precision vector. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
static init25127(xyz: SDKHandle): Vector3DFloatSwift declarationinit(_ xyz: simd_float3)Returns a new vector from a single-precision vector. - Parameter xyz: The source vector.
static init2478(source: SDKHandle): Vector3DFloatSwift declarationinit(_ source: simd_packed_float4)Creates a Spatial vector from a simd packed vector.
static init34322(): Vector3DFloatSwift declarationinit()No declarations were skipped in this snapshot.