One Logo Pool Ball
Spatial · IOS API REFERENCE

Primitive3D

protocol · iOS 16.0+ · SDK 27.1

protocol Primitive3D : Decodable, Encodable, Equatable

A set of methods common to Spatial primitives.

Members (6)

method · iOS 16.0+

apply

Swift declaration
mutating func apply(_ transform: AffineTransform3D)

Applies an affine transform. - Parameter transform: The affine transform.

method · iOS 16.0+

apply

Swift declaration
mutating func apply(_ transform: ProjectiveTransform3D)

Applies a projective transform. - Parameter transform: The projective transform.

method · iOS 16.0+

apply

Swift declaration
mutating func apply(_ pose: Pose3D)

Applies a pose. - Parameter pose: The pose.

method · iOS 16.0+

unapply

Swift declaration
mutating func unapply(_ transform: AffineTransform3D)

Unapplies an affine transform. - Parameter transform: The affine transform. - Note: The transform must be rectilinear otherwise this function returns `self`.

method · iOS 16.0+

unapply

Swift declaration
mutating func unapply(_ transform: ProjectiveTransform3D)

Unapplies a projective transform. - Parameter transform: The projective transform. - Note: When unapplying transforms on rectangle structures, the transform must be rectilinear, otherwise this function has no effect.

method · iOS 16.0+

unapply

Swift declaration
mutating func unapply(_ pose: Pose3D)

Unapplies a pose. - Parameter pose: The projective transform. - Note: When unapplying transforms on size and rectangle structures, the transform must be rectilinear, otherwise this function has no effect.

Skipped declarations

No declarations were skipped in this snapshot.

All Spatial types →