One Logo Pool Ball
Spatial · IOS API REFERENCE

ScaledPose3DFloat

struct · SDK 27.1

struct ScaledPose3DFloat

Members (30)

get

position

TypeScript
get position(): Point3DFloat
Swift declaration
var position: Point3DFloat
set

position

TypeScript
set position(value: Point3DFloat)
Swift declaration
var position: Point3DFloat
get

rotation

TypeScript
get rotation(): Rotation3DFloat
Swift declaration
var rotation: Rotation3DFloat
set

rotation

TypeScript
set rotation(value: Rotation3DFloat)
Swift declaration
var rotation: Rotation3DFloat
get

scale

TypeScript
get scale(): number
Swift declaration
var scale: Float
set

scale

TypeScript
set scale(value: number)
Swift declaration
var scale: Float
get · iOS 26.0+

isIdentity

TypeScript
get isIdentity(): boolean
Swift declaration
var isIdentity: Bool { get }

Returns true if the scaled pose is the identity pose.

method · iOS 26.0+

translated

TypeScript
translated(offset: Vector3DFloat): ScaledPose3DFloat
Swift declaration
func translated(by offset: Vector3DFloat) -> ScaledPose3DFloat

Returns the entity translated by the specified vector. - Parameter vector: The vector that defines that translation.

get · iOS 26.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 26.0+

customMirror

TypeScript
get customMirror(): SDKHandle
Swift declaration
var customMirror: Mirror { get }

The custom mirror for this instance.

method · iOS 26.0+

concatenating

TypeScript
concatenating(transform: ScaledPose3DFloat): ScaledPose3DFloat
Swift declaration
func concatenating(_ transform: ScaledPose3DFloat) -> ScaledPose3DFloat

Returns a transform that's constructed by concatenating two existing scaled poses. - Parameter transform: The second scaled pose.

method · iOS 26.0+

concatenating

TypeScript
concatenating96912(transform: Pose3DFloat): ScaledPose3DFloat
Swift declaration
func concatenating(_ transform: Pose3DFloat) -> ScaledPose3DFloat

Returns a transform that's constructed by concatenating two a scaled pose and a pose. - Parameter transform: The second pose.

method · iOS 26.0+

isApproximatelyEqual

TypeScript
isApproximatelyEqual(other: ScaledPose3DFloat, tolerance?: number): boolean
Swift declaration
func isApproximatelyEqual(to other: ScaledPose3DFloat, tolerance: Float = sqrt(.ulpOfOne)) -> Bool

Returns 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.

method · iOS 26.0+

flip

TypeScript
flip(axis: Axis3D): void
Swift declaration
mutating func flip(along axis: Axis3D)

Flips the scaled pose along the specified axis. - Parameter axis: The axis of the flip operation.

get · iOS 26.0+

matrix

TypeScript
get matrix(): SDKHandle
Swift declaration
var matrix: simd_float4x4 { get }

A 4 x 4 matrix that represents the scaled pose's scale, rotation, and translation.

method · iOS 26.0+

flipped

TypeScript
flipped(axis: Axis3D): ScaledPose3DFloat
Swift declaration
func flipped(along axis: Axis3D) -> ScaledPose3DFloat

Returns the scaled pose flipped along the specified axis. - Parameter axis: The axis of the flip operation.

init · iOS 26.0+

init

TypeScript
static initForwardScaleUp(forward: Vector3DFloat, scale?: number, up?: Vector3DFloat): ScaledPose3DFloat
Swift declaration
init(forward: Vector3DFloat, scale: Float = 1, up: Vector3DFloat = Vector3DFloat(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 · iOS 26.0+

inverse

TypeScript
get inverse(): ScaledPose3DFloat
Swift declaration
var inverse: ScaledPose3DFloat { get }

The inverse of the scaled pose's underlying matrix.

method · iOS 26.0+

rotated

TypeScript
rotatedBy(rotation: Rotation3DFloat): ScaledPose3DFloat
Swift declaration
func rotated(by rotation: Rotation3DFloat) -> ScaledPose3DFloat

Returns 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.

method · iOS 26.0+

rotated

TypeScript
rotatedBy67970(quaternion: SDKHandle): ScaledPose3DFloat
Swift declaration
func rotated(by quaternion: simd_quatf) -> ScaledPose3DFloat

Returns 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.

get · iOS 26.0+

identity

TypeScript
static get identity(): ScaledPose3DFloat
Swift declaration
static var identity: ScaledPose3DFloat { get }

The identity scaled pose.

init · iOS 26.0+

init

TypeScript
static initPositionTargetScaleUp(position: Point3DFloat, target: Point3DFloat, scale?: number, up?: Vector3DFloat): ScaledPose3DFloat
Swift declaration
init(position: Point3DFloat = .zero, target: Point3DFloat, scale: Float = 1, up: Vector3DFloat = Vector3DFloat(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.

init · iOS 26.0+

init

TypeScript
static initPositionRotationScale(position: Point3DFloat, rotation: Rotation3DFloat, scale?: number): ScaledPose3DFloat
Swift declaration
init(position: Point3DFloat = .zero, rotation: Rotation3DFloat, scale: Float = 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.

init · iOS 26.0+

init

TypeScript
static initPositionRotationScale31997(position: SDKHandle, rotation: SDKHandle, scale?: number): ScaledPose3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initTransform(transform: AffineTransform3DFloat): (ScaledPose3DFloat) | null
Swift declaration
init?(transform: AffineTransform3DFloat)

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 ``AffineTransform3DFloat`` doesn't have uniform scale, the function returns `nil`.

init · iOS 26.0+

init

TypeScript
static initTransform89780(transform: ProjectiveTransform3DFloat): (ScaledPose3DFloat) | null
Swift declaration
init?(transform: ProjectiveTransform3DFloat)

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 ``ProjectiveTransform3DFloat`` doesn't have uniform scale, the function returns `nil`.

init · iOS 26.0+

init

TypeScript
static init(matrix: SDKHandle): (ScaledPose3DFloat) | null
Swift declaration
init?(_ 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`.

init · iOS 26.0+

init

TypeScript
static init51775(pose: ScaledPose3D): ScaledPose3DFloat
Swift declaration
init(_ pose: ScaledPose3D)

Returns a single-precision scaled pose from a double-precision scaled pose.

init

init

TypeScript
static initPositionRotationScale70319(position: Point3DFloat, rotation: Rotation3DFloat, scale: number): ScaledPose3DFloat
Swift declaration
init(position: Point3DFloat, rotation: Rotation3DFloat, scale: Float)

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.

init

init

TypeScript
static init34842(): ScaledPose3DFloat
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All Spatial types →