applying
TypeScriptapplying(transform: AffineTransform3DFloat): Rect3DFloatSwift declarationfunc applying(_ transform: AffineTransform3DFloat) -> Rect3DFloatstruct · iOS 26.0+ · SDK 27.1
struct Rect3DFloatapplying(transform: AffineTransform3DFloat): Rect3DFloatSwift declarationfunc applying(_ transform: AffineTransform3DFloat) -> Rect3DFloatapplying30461(transform: ProjectiveTransform3DFloat): Rect3DFloatSwift declarationfunc applying(_ transform: ProjectiveTransform3DFloat) -> Rect3DFloatcontainsPoint(other: Point3DFloat): booleanSwift declarationfunc contains(point other: Point3DFloat) -> Boolcontains(other: Rect3DFloat): booleanSwift declarationfunc contains(_ other: Rect3DFloat) -> Boolget center(): Point3DFloatSwift declarationvar center: Point3DFloat { get }get max(): Point3DFloatSwift declarationvar max: Point3DFloat { get }get min(): Point3DFloatSwift declarationvar min: Point3DFloat { get }inset(dXYZ: Size3DFloat): Rect3DFloatSwift declarationfunc inset(by dXYZ: Size3DFloat) -> Rect3DFloatget integral(): Rect3DFloatSwift declarationvar integral: Rect3DFloat { get }intersects(other: Rect3DFloat): booleanSwift declarationfunc intersects(_ other: Rect3DFloat) -> Boolget isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }get isFinite(): booleanSwift declarationvar isFinite: Bool { get }get isNaN(): booleanSwift declarationvar isNaN: Bool { get }get isNull(): booleanSwift declarationvar isNull: Bool { get }get isZero(): booleanSwift declarationvar isZero: Bool { get }static initCenterSize(center: Point3DFloat, size: Size3DFloat): Rect3DFloatSwift declarationinit(center: Point3DFloat, size: Size3DFloat)static initOriginSize(origin: Point3DFloat, size: Size3DFloat): Rect3DFloatSwift declarationinit(origin: Point3DFloat, size: Size3DFloat)rotatedBy(rotation: Rotation3DFloat): Rect3DFloatSwift declarationfunc rotated(by rotation: Rotation3DFloat) -> Rect3DFloatrotatedByAround(rotation: Rotation3DFloat, pivot: Point3DFloat): Rect3DFloatSwift declarationfunc rotated(by rotation: Rotation3DFloat, around pivot: Point3DFloat) -> Rect3DFloatrotatedBy46216(quaternion: SDKHandle): Rect3DFloatSwift declarationfunc rotated(by quaternion: simd_quatf) -> Rect3DFloatrotatedByAround98628(quaternion: SDKHandle, pivot: Point3DFloat): Rect3DFloatSwift declarationfunc rotated(by quaternion: simd_quatf, around pivot: Point3DFloat) -> Rect3DFloatscaled(scale: Size3DFloat): Rect3DFloatSwift declarationfunc scaled(by scale: Size3DFloat) -> Rect3DFloatuniformlyScaled(scale: number): Rect3DFloatSwift declarationfunc uniformlyScaled(by scale: Float) -> Rect3DFloatget standardized(): Rect3DFloatSwift declarationvar standardized: Rect3DFloat { get }translated(offset: Vector3DFloat): Rect3DFloatSwift declarationfunc translated(by offset: Vector3DFloat) -> Rect3DFloatunion(other: Rect3DFloat): Rect3DFloatSwift declarationfunc union(_ other: Rect3DFloat) -> Rect3DFloatget origin(): Point3DFloatSwift declarationvar origin: Point3DFloatset origin(value: Point3DFloat)Swift declarationvar origin: Point3DFloatget size(): Size3DFloatSwift declarationvar size: Size3DFloatset size(value: Size3DFloat)Swift declarationvar size: Size3DFloatstatic get infinity(): Rect3DFloatSwift declarationstatic let infinity: Rect3DFloatstatic get zero(): Rect3DFloatSwift declarationstatic let zero: Rect3DFloatstatic initOriginSize65486(origin: Point3DFloat, size: Size3DFloat): Rect3DFloatSwift declarationinit(origin: Point3DFloat, size: Size3DFloat)unapplying(scaledPose: ScaledPose3DFloat): Rect3DFloatSwift declarationfunc unapplying(_ scaledPose: ScaledPose3DFloat) -> Rect3DFloatReturns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive. - Note: The pose's rotation angle must be zero, otherwise this function returns `self`.
unapplying47908(transform: AffineTransform3DFloat): Rect3DFloatSwift declarationfunc unapplying(_ transform: AffineTransform3DFloat) -> Rect3DFloatUnapplies an affine transform. - Parameter transform: The affine transform. - Note: The transform must be rectilinear otherwise this function returns `self`.
unapplying93907(transform: ProjectiveTransform3DFloat): Rect3DFloatSwift declarationfunc unapplying(_ transform: ProjectiveTransform3DFloat) -> Rect3DFloatUnapplies a projective transform. - Parameter transform: The projective transform. - Note: The transform must be rectilinear otherwise this function returns `self`.
unapplying3896(pose: Pose3DFloat): Rect3DFloatSwift declarationfunc unapplying(_ pose: Pose3DFloat) -> Rect3DFloatReturns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive. - Note: The pose's rotation angle must be zero, otherwise this function returns `self`.
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 cornerPoints(): Array<Point3DFloat>Swift declarationvar cornerPoints: [Point3DFloat] { get }Returns the corner points of the rectangle. This function returns the vertices in a clockwise direction, starting from the origin: 5-----6 | | 1-----2 | | | | | y z | 4--|--7 | / | | |/ 0-----3 +-- x For example, `points[0]` equals `rect.origin`, and `points[6]` is at `rect.origin` offset by `rect.size`.
get customMirror(): SDKHandleSwift declarationvar customMirror: Mirror { get }The custom mirror for this instance.
intersection(other: Rect3DFloat): (Rect3DFloat) | nullSwift declarationfunc intersection(_ other: Rect3DFloat) -> Rect3DFloat?Returns the intersection of two rectangles. - Parameter other: The second rectangle. - Returns The intersection of `self` and `other`.
static initCenterSize82956(center: Vector3DFloat, size: Vector3DFloat): Rect3DFloatSwift declarationinit(center: Vector3DFloat = .zero, size: Vector3DFloat)Creates a rectangle from Spatial vectors that describe the center and size. - Parameter center: The center of the rectangle. - Parameter size: The size of the rectangle.
static initCenterSize52279(center: SDKHandle, size: SDKHandle): Rect3DFloatSwift declarationinit(center: simd_double3 = .zero, size: simd_double3)Creates a rectangle from single-precision vectors that describe the center and size. - Parameter center: The center of the rectangle. - Parameter size: The size of the rectangle. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
static initCenterSize43421(center: SDKHandle, size: SDKHandle): Rect3DFloatSwift declarationinit(center: simd_float3 = .zero, size: simd_float3)Creates a rectangle from simd vectors that describe the center and size. - Parameter center: The center of the rectangle. - Parameter size: The size of the rectangle.
static initOriginSize31215(origin: Vector3DFloat, size: Vector3DFloat): Rect3DFloatSwift declarationinit(origin: Vector3DFloat = .zero, size: Vector3DFloat)Creates a rectangle from Spatial vectors that describe the origin and size. - Parameter origin: The origin of the rectangle. - Parameter size: The size of the rectangle.
static initOriginSize79764(origin: SDKHandle, size: SDKHandle): Rect3DFloatSwift declarationinit(origin: simd_double3 = .zero, size: simd_double3)Creates a rectangle from double-precision vectors that describe the origin and size. - Parameter origin: The origin of the rectangle. - Parameter size: The size of the rectangle. - note: This function is provided as a convenience. All Spatial storage and calculations are single-precision.
static initOriginSize32818(origin: SDKHandle, size: SDKHandle): Rect3DFloatSwift declarationinit(origin: simd_float3 = .zero, size: simd_float3)Creates a rectangle from simd vectors that describe the origin and size. - Parameter origin: The origin of the rectangle. - Parameter size: The size of the rectangle.
static initPoints(points: Array<Point3DFloat>): Rect3DFloatSwift declarationinit(points: [Point3DFloat])Creates a rectangle that's the bounding box of the specified points. - Parameter points: The array of points. - Precondition: The `points` array must contain at least one element.
sheared(shear: AxisWithFactors): Rect3DFloatSwift declarationfunc sheared(_ shear: AxisWithFactors) -> Rect3DFloatReturns a sheared rectangle. - Parameter shear: The axis and shear factors. - Returns The sheared rectangle. Because affine transforms do not preserve rectangles in general, this function returns the smallest rectangle that contains the transformed corner points of the rect parameter.
applying5507(scaledPose: ScaledPose3DFloat): Rect3DFloatSwift declarationfunc applying(_ scaledPose: ScaledPose3DFloat) -> Rect3DFloatReturns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.
applying70360(pose: Pose3DFloat): Rect3DFloatSwift declarationfunc applying(_ pose: Pose3DFloat) -> Rect3DFloatReturns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.
containsAnyOf(points: Array<Point3DFloat>): booleanSwift declarationfunc contains(anyOf points: [Point3DFloat]) -> BoolReturns a Boolean value that indicates whether this volume contains any of the specified points. - Parameter points: An array of points. - Returns A Boolean value that indicates whether `self` contains any of the specified points.
scaledBy(x?: number, y?: number, z?: number): Rect3DFloatSwift declarationfunc scaledBy(x: Float = 1, y: Float = 1, z: Float = 1) -> Rect3DFloatReturns the rectangle 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 rectangle.
formInset(dXYZ: Size3DFloat): voidSwift declarationmutating func formInset(by dXYZ: Size3DFloat)Insets the rectangle by the specified size. - Parameter dXYZ: The inset amount. This function insets the rectangle by the specified values on each axis. The origin value is offset by the distance specified by the `dXYZ` parameter. The size is adjusted by `(2*dXYZ)`, relative to the source rectangle. If the width, height, or depth are positive values, then the rectangle’s size is decreased on that dimension. If width, height, or depth are negative values, the rectangle’s size is increased on that dimension.
static init(rect: Rect3D): Rect3DFloatSwift declarationinit(_ rect: Rect3D)Returns a single-precision rectangle from a double-precision rectangle.
static init22853(): Rect3DFloatSwift declarationinit()No declarations were skipped in this snapshot.