position
TypeScriptget position(): Point3DFloatSwift declarationvar position: Point3DFloatstruct · iOS 26.0+ · SDK 27.1
struct Pose3DFloatget position(): Point3DFloatSwift declarationvar position: Point3DFloatset position(value: Point3DFloat)Swift declarationvar position: Point3DFloatget rotation(): Rotation3DFloatSwift declarationvar rotation: Rotation3DFloatset rotation(value: Rotation3DFloat)Swift declarationvar rotation: Rotation3DFloatget isIdentity(): booleanSwift declarationvar isIdentity: Bool { get }Returns `true` if the pose is the identity transform.
translated(offset: Vector3DFloat): Pose3DFloatSwift declarationfunc translated(by offset: Vector3DFloat) -> Pose3DFloatReturns the entity translated by the specified vector. - Parameter vector: The vector 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: Pose3DFloat): Pose3DFloatSwift declarationfunc concatenating(_ transform: Pose3DFloat) -> Pose3DFloatReturns a transform that's constructed by concatenating two existing poses. - Parameter transform: The second pose.
concatenating79614(transform: ScaledPose3DFloat): ScaledPose3DFloatSwift declarationfunc concatenating(_ transform: ScaledPose3DFloat) -> ScaledPose3DFloatReturns a transform that's constructed by concatenating two a pose and a scaled pose. - Parameter transform: The second scaled pose.
isApproximatelyEqual(other: Pose3DFloat, tolerance?: number): booleanSwift declarationfunc isApproximatelyEqual(to other: Pose3DFloat, tolerance: Float = sqrt(.ulpOfOne)) -> BoolReturns a Boolean value that indicates whether two poses are equal within a specified tolerance. - Parameter other: The second pose. - Parameter tolerance: The tolerance of the comparison.
flip(axis: Axis3D): voidSwift declarationmutating func flip(along axis: Axis3D)Flips the pose along the specified axis. - Parameter axis: The axis of the flip operation.
get matrix(): SDKHandleSwift declarationvar matrix: simd_float4x4 { get }A 4 x 4 matrix that represents the pose's translation and rotation.
flipped(axis: Axis3D): Pose3DFloatSwift declarationfunc flipped(along axis: Axis3D) -> Pose3DFloatReturns the pose flipped along the specified axis. - Parameter axis: The axis of the flip operation.
static initForwardUp(forward: Vector3DFloat, up?: Vector3DFloat): Pose3DFloatSwift declarationinit(forward: Vector3DFloat, up: Vector3DFloat = Vector3DFloat(x: 0, y: 1, z: 0))Creates a pose with the specified forward and up vectors. - Parameter forward: The forward direction. - Parameter up: The up direction. - note: This function creates a pose where `+z` is forward.
get inverse(): Pose3DFloatSwift declarationvar inverse: Pose3DFloat { get }The inverse of the pose's underlying matrix.
rotatedBy(rotation: Rotation3DFloat): Pose3DFloatSwift declarationfunc rotated(by rotation: Rotation3DFloat) -> Pose3DFloatReturns a pose with a rotation that's rotated by the specified rotation. - Parameter rotation: The rotation. - Returns A pose with a rotation that's rotated by the specified rotation.
rotatedBy10834(quaternion: SDKHandle): Pose3DFloatSwift declarationfunc rotated(by quaternion: simd_quatf) -> Pose3DFloatReturns a pose with a rotation that's rotated by the specified quaternion. - Parameter quaternion: The quaternion that defines the rotation. - Returns A pose with a rotation that's rotated by the specified quaternion.
applying(transform: ProjectiveTransform3DFloat): Pose3DFloatSwift declarationfunc applying(_ transform: ProjectiveTransform3DFloat) -> Pose3DFloatReturns a pose that's transformed by the specified projective transform. - Parameter transform: The projective transform. - Returns The transformed pose. This function applies the transform to the pose.
static get identity(): Pose3DFloatSwift declarationstatic var identity: Pose3DFloat { get }The identity pose.
static initPositionTargetUp(position: Point3DFloat, target: Point3DFloat, up?: Vector3DFloat): Pose3DFloatSwift declarationinit(position: Point3DFloat = .zero, target: Point3DFloat, up: Vector3DFloat = Vector3DFloat(x: 0, y: 1, z: 0))Creates a pose at the specified position that's oriented towards a look at target. - Parameter position: The position of the pose. - Parameter target: The point that the ray looks at. - Parameter up: The up direction. - note: This function creates a pose where `+z` is forward.
static initPositionRotation(position: Point3DFloat, rotation: Rotation3DFloat): Pose3DFloatSwift declarationinit(position: Point3DFloat = .zero, rotation: Rotation3DFloat)Creates a pose from Spatial primitives that describe the position and rotation. - Parameter position: The position of the pose. - Parameter rotation: The rotation of the pose.
static initPositionRotation66407(position: SDKHandle, rotation: SDKHandle): Pose3DFloatSwift declarationinit(position: simd_float3 = .zero, rotation: simd_quatf)Creates a pose from double-precision simd primitives that describe the position and rotation. - Parameter position: The position of the pose. - Parameter rotation: The rotation of the pose.
static initTransform(transform: AffineTransform3DFloat): (Pose3DFloat) | nullSwift declarationinit?(transform: AffineTransform3DFloat)Creates a pose with with a position and rotation 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 and rotation 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`.
static initTransform19709(transform: ProjectiveTransform3DFloat): (Pose3DFloat) | nullSwift declarationinit?(transform: ProjectiveTransform3DFloat)Creates a pose with with a position and rotation 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 and rotation 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`.
static init(matrix: SDKHandle): (Pose3DFloat) | nullSwift declarationinit?(_ matrix: simd_float4x4)Creates a 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`.
static init32887(pose: Pose3D): Pose3DFloatSwift declarationinit(_ pose: Pose3D)Returns a single-precision pose from a double-precision pose.
static initPositionRotation33371(position: Point3DFloat, rotation: Rotation3DFloat): Pose3DFloatSwift declarationinit(position: Point3DFloat, rotation: Rotation3DFloat)Creates a pose from Spatial primitives that describe the position and rotation. - Parameter position: The position of the pose. - Parameter rotation: The rotation of the pose.
static init30730(): Pose3DFloatSwift declarationinit()No declarations were skipped in this snapshot.