position
TypeScriptget position(): Point3DSwift declarationvar position: Point3Dstruct · SDK 27.1
struct ScaledPose3Dget position(): Point3DSwift declarationvar position: Point3Dset position(value: Point3D)Swift declarationvar position: Point3Dget rotation(): Rotation3DSwift declarationvar rotation: Rotation3Dset rotation(value: Rotation3D)Swift declarationvar rotation: Rotation3Dget scale(): numberSwift declarationvar scale: Doubleset scale(value: number)Swift declarationvar scale: Doubleget isIdentity(): booleanSwift declarationvar isIdentity: Bool { get }Returns true if the scaled pose is the identity pose.
translatedBy(offset: Vector3D): ScaledPose3DSwift declarationfunc translated(by offset: Vector3D) -> ScaledPose3DReturns the entity translated by the specified vector. - Parameter vector: The vector that defines that translation.
translatedBy25809(size: Size3D): ScaledPose3DSwift declarationfunc translated(by size: Size3D) -> ScaledPose3DReturns the entity translated by the specified size. - Parameter size: The size structure that defines that translation.
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.
concatenating(transform: ScaledPose3D): ScaledPose3DSwift declarationfunc concatenating(_ transform: ScaledPose3D) -> ScaledPose3DReturns a transform that's constructed by concatenating two existing scaled poses. - Parameter transform: The second scaled pose.
concatenating54535(transform: Pose3D): ScaledPose3DSwift declarationfunc concatenating(_ transform: Pose3D) -> ScaledPose3DReturns a transform that's constructed by concatenating two a scaled pose and a pose. - Parameter transform: The second pose.
isApproximatelyEqual(other: ScaledPose3D, tolerance?: number): booleanSwift declarationfunc isApproximatelyEqual(to other: ScaledPose3D, tolerance: Double = sqrt(.ulpOfOne)) -> BoolReturns a Boolean value that indicates whether two scaled poses are equal within a specified tolerance. - Parameter other: The second scaled pose. - Parameter tolerance: The tolerance of the comparison.
flip(axis: Axis3D): voidSwift declarationmutating func flip(along axis: Axis3D)Flips the scaled pose along the specified axis. - Parameter axis: The axis of the flip operation.
get matrix(): SDKHandleSwift declarationvar matrix: simd_double4x4 { get }A 4 x 4 matrix that represents the scaled pose's scale, rotation, and translation.
flipped(axis: Axis3D): ScaledPose3DSwift declarationfunc flipped(along axis: Axis3D) -> ScaledPose3DReturns the scaled pose flipped along the specified axis. - Parameter axis: The axis of the flip operation.
static initForwardScaleUp(forward: Vector3D, scale?: number, up?: Vector3D): ScaledPose3DSwift declarationinit(forward: Vector3D, scale: Double = 1, up: Vector3D = Vector3D(x: 0, y: 1, z: 0))Creates a scaled pose with the specified forward and up vectors. - Parameter forward: The forward direction. - Parameter scale: The uniform scale of the scaled pose. - Parameter up: The up direction. - note: This function creates a scaled pose where `+z` is forward.
get inverse(): ScaledPose3DSwift declarationvar inverse: ScaledPose3D { get }The inverse of the scaled pose's underlying matrix.
rotatedBy(quaternion: SDKHandle): ScaledPose3DSwift declarationfunc rotated(by quaternion: simd_quatd) -> ScaledPose3DReturns a scaled pose with a rotation that's rotated by the specified quaternion. - Parameter quaternion: The quaternion that defines the rotation. - Returns A scaled pose with a rotation that's rotated by the specified quaternion.
rotatedBy84406(rotation: Rotation3D): ScaledPose3DSwift declarationfunc rotated(by rotation: Rotation3D) -> ScaledPose3DReturns a pose with a rotation that's rotated by the specified rotation. - Parameter rotation: The rotation. - Returns A scaled pose with a rotation that's rotated by the specified rotation.
static get identity(): ScaledPose3DSwift declarationstatic var identity: ScaledPose3D { get }The identity scaled pose.
static initPositionTargetScaleUp(position: Point3D, target: Point3D, scale?: number, up?: Vector3D): ScaledPose3DSwift declarationinit(position: Point3D = .zero, target: Point3D, scale: Double = 1, up: Vector3D = Vector3D(x: 0, y: 1, z: 0))Creates a scaled pose at the specified position that's oriented towards a look at target. - Parameter position: The position of the scaled pose. - Parameter target: The point that the scaled pose looks at. - Parameter scale: The uniform scale of the scaled pose. - Parameter up: The up direction. - note: This function creates a scaled pose where `+z` is forward.
static initPositionRotationScale(position: Point3D, rotation: Rotation3D, scale?: number): ScaledPose3DSwift declarationinit(position: Point3D = .zero, rotation: Rotation3D, scale: Double = 1)Creates a scaled pose from Spatial primitives that describe the position, rotation, and scale. - Parameter position: The position of the scaled pose. - Parameter rotation: The rotation of the pose. - Parameter scale: The uniform scale of the scaled pose.
static initPositionRotationScale5588(position: SDKHandle, rotation: SDKHandle, scale?: number): ScaledPose3DSwift declarationinit(position: simd_double3 = .zero, rotation: simd_quatd, scale: Double = 1)Creates a pose from double-precision simd primitives that describe the position, rotation, and scale. - Parameter position: The position of the scaled pose. - Parameter rotation: The rotation of the scaled pose. - Parameter scale: The uniform scale of the scaled pose.
static initPositionRotationScale72222(position: SDKHandle, rotation: SDKHandle, scale?: number): ScaledPose3DSwift declarationinit(position: simd_float3 = .zero, rotation: simd_quatf, scale: Float = 1)Creates a pose from single-precision simd primitives that describe the position, rotation, and scale. - Parameter position: The position of the scaled pose. - Parameter rotation: The rotation of the scaled pose. - Parameter scale: The uniform scale of the scaled pose.
static initTransform(transform: AffineTransform3D): (ScaledPose3D) | nullSwift declarationinit?(transform: AffineTransform3D)Creates a scaled pose with with a position, rotation, and scale that are defined by an affine transform. - Parameter transform: The source transform. The function only considers the transform's rotation and translation components. - Returns: A pose with a position, rotation, and scale that are defined by an affine transform. - note: This function can't extract rotation from a non-scale-rotate-translate affine transform. In that case, the function returns `nil`. If the specified ``AffineTransform3D`` doesn't have uniform scale, the function returns `nil`.
static initTransform81077(transform: ProjectiveTransform3D): (ScaledPose3D) | nullSwift declarationinit?(transform: ProjectiveTransform3D)Creates a pose with with a position, rotation, and scale that are defined by a projective transform. - Parameter transform: The source transform. The function only considers the transform's rotation and translation components. - Returns: A pose with a position, rotation, and scale that are defined by a projective transform. - note: This function can't extract rotation from a non-scale-rotate-translate affine transform. In that case, the function returns `nil`. If the specified ``ProjectiveTransform3D`` doesn't have uniform scale, the function returns `nil`.
static init(matrix: SDKHandle): (ScaledPose3D) | nullSwift declarationinit?(_ matrix: simd_float4x4)Creates a scaled pose with the specified single-precision 4 x 4 matrix - Parameter matrix: The source matrix - note: This function can't extract rotation from a non-scale-rotate-translate affine transform. In that case, the function returns `nil`. If the specified matrix doesn't have uniform scale the function returns `nil`.
static init96470(matrix: SDKHandle): (ScaledPose3D) | nullSwift declarationinit?(_ matrix: simd_double4x4)Creates a scaled pose with the specified double-precision 4 x 4 matrix - Parameter matrix: The source matrix - note: This function can't extract rotation from a non-scale-rotate-translate affine transform. In that case, the function returns `nil`. If the specified matrix doesn't have uniform scale the function returns `nil`.
static init64461(pose: ScaledPose3DFloat): ScaledPose3DSwift declarationinit(_ pose: ScaledPose3DFloat)Returns a double-precision scaled pose from a single-precision scaled pose.
static init73635(): ScaledPose3DSwift declarationinit()1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
ScaledPose3D.init(position:rotation:scale:)
The iOS SDK compiler rejected this binding: 'init(position:rotation:scale:)' is only available in iOS 18.0 or newer