applying
TypeScriptapplying(transform: AffineTransform3D): Rect3DSwift declarationfunc applying(_ transform: AffineTransform3D) -> Rect3Dstruct · iOS 16.0+ · SDK 27.1
struct Rect3Dapplying(transform: AffineTransform3D): Rect3DSwift declarationfunc applying(_ transform: AffineTransform3D) -> Rect3Dapplying92335(transform: ProjectiveTransform3D): Rect3DSwift declarationfunc applying(_ transform: ProjectiveTransform3D) -> Rect3DcontainsPoint(other: Point3D): booleanSwift declarationfunc contains(point other: Point3D) -> Boolcontains(other: Rect3D): booleanSwift declarationfunc contains(_ other: Rect3D) -> Boolget center(): Point3DSwift declarationvar center: Point3D { get }get max(): Point3DSwift declarationvar max: Point3D { get }get min(): Point3DSwift declarationvar min: Point3D { get }inset(dXYZ: Size3D): Rect3DSwift declarationfunc inset(by dXYZ: Size3D) -> Rect3Dget integral(): Rect3DSwift declarationvar integral: Rect3D { get }intersects(other: Rect3D): booleanSwift declarationfunc intersects(_ other: Rect3D) -> Boolget isEmpty(): booleanSwift declarationvar isEmpty: Bool { get }get isFinite(): booleanSwift declarationvar isFinite: Bool { get }get isNaN(): booleanSwift declarationvar isNaN: Bool { get }get isZero(): booleanSwift declarationvar isZero: Bool { get }static initCenterSize(center: Point3D, size: Size3D): Rect3DSwift declarationinit(center: Point3D, size: Size3D)static initOriginSize(origin: Point3D, size: Size3D): Rect3DSwift declarationinit(origin: Point3D, size: Size3D)rotatedBy(rotation: Rotation3D): Rect3DSwift declarationfunc rotated(by rotation: Rotation3D) -> Rect3DrotatedByAround(rotation: Rotation3D, pivot: Point3D): Rect3DSwift declarationfunc rotated(by rotation: Rotation3D, around pivot: Point3D) -> Rect3DrotatedBy83504(quaternion: SDKHandle): Rect3DSwift declarationfunc rotated(by quaternion: simd_quatd) -> Rect3DrotatedByAround39598(quaternion: SDKHandle, pivot: Point3D): Rect3DSwift declarationfunc rotated(by quaternion: simd_quatd, around pivot: Point3D) -> Rect3Dscaled(scale: Size3D): Rect3DSwift declarationfunc scaled(by scale: Size3D) -> Rect3DuniformlyScaled(scale: number): Rect3DSwift declarationfunc uniformlyScaled(by scale: Double) -> Rect3Dget standardized(): Rect3DSwift declarationvar standardized: Rect3D { get }translatedBy(offset: Vector3D): Rect3DSwift declarationfunc translated(by offset: Vector3D) -> Rect3Dunion(other: Rect3D): Rect3DSwift declarationfunc union(_ other: Rect3D) -> Rect3Dget origin(): Point3DSwift declarationvar origin: Point3Dset origin(value: Point3D)Swift declarationvar origin: Point3Dget size(): Size3DSwift declarationvar size: Size3Dset size(value: Size3D)Swift declarationvar size: Size3Dstatic get infinity(): Rect3DSwift declarationstatic let infinity: Rect3Dstatic get zero(): Rect3DSwift declarationstatic let zero: Rect3Dstatic initOriginSize65198(origin: Point3D, size: Size3D): Rect3DSwift declarationinit(origin: Point3D, size: Size3D)translatedBy59021(size: Size3D): Rect3DSwift declarationfunc translated(by size: Size3D) -> Rect3DReturns the entity translated by the specified size. - Parameter size: The size structure that defines that translation.
unapplying(scaledPose: ScaledPose3D): Rect3DSwift declarationfunc unapplying(_ scaledPose: ScaledPose3D) -> Rect3DReturns 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`.
unapplying3453(transform: AffineTransform3D): Rect3DSwift declarationfunc unapplying(_ transform: AffineTransform3D) -> Rect3DUnapplies an affine transform. - Parameter transform: The affine transform. - Note: The transform must be rectilinear otherwise this function returns `self`.
unapplying35784(transform: ProjectiveTransform3D): Rect3DSwift declarationfunc unapplying(_ transform: ProjectiveTransform3D) -> Rect3DUnapplies a projective transform. - Parameter transform: The projective transform. - Note: The transform must be rectilinear otherwise this function returns `self`.
unapplying39689(pose: Pose3D): Rect3DSwift declarationfunc unapplying(_ pose: Pose3D) -> Rect3DReturns 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`.
containsAny(points: Array<Point3D>): booleanSwift declarationfunc containsAny(of points: [Point3D]) -> 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.
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<Point3D>Swift declarationvar cornerPoints: [Point3D] { 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: Rect3D): (Rect3D) | nullSwift declarationfunc intersection(_ other: Rect3D) -> Rect3D?Returns the intersection of two rectangles. - Parameter other: The second rectangle. - Returns The intersection of `self` and `other`.
get maxX(): numberSwift declarationvar maxX: Double { get }Returns the largest value of the x-coordinate for the rectangle.
get maxY(): numberSwift declarationvar maxY: Double { get }Returns the largest value of the y-coordinate for the rectangle.
get maxZ(): numberSwift declarationvar maxZ: Double { get }Returns the largest value of the z-coordinate for the rectangle.
get midX(): numberSwift declarationvar midX: Double { get }Returns the x-coordinate that establishes the center of a rectangle.
get midY(): numberSwift declarationvar midY: Double { get }Returns the y-coordinate that establishes the center of a rectangle.
get midZ(): numberSwift declarationvar midZ: Double { get }Returns the z-coordinate that establishes the center of a rectangle.
get minX(): numberSwift declarationvar minX: Double { get }Returns the smallest value for the x-coordinate of the rectangle.
get minY(): numberSwift declarationvar minY: Double { get }Returns the smallest value for the y-coordinate of the rectangle.
get minZ(): numberSwift declarationvar minZ: Double { get }Returns the smallest value for the z-coordinate of the rectangle.
static initCenterSize80186(center: Vector3D, size: Vector3D): Rect3DSwift declarationinit(center: Vector3D = .zero, size: Vector3D)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 initCenterSize67077(center: SDKHandle, size: SDKHandle): Rect3DSwift declarationinit(center: simd_double3 = .zero, size: simd_double3)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 initCenterSize55647(center: SDKHandle, size: SDKHandle): Rect3DSwift declarationinit(center: simd_float3 = .zero, size: simd_float3)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 double-precision.
static initOriginSize30819(origin: Vector3D, size: Vector3D): Rect3DSwift declarationinit(origin: Vector3D = .zero, size: Vector3D)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 initOriginSize72206(origin: SDKHandle, size: SDKHandle): Rect3DSwift declarationinit(origin: simd_double3 = .zero, size: simd_double3)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 initOriginSize91456(origin: SDKHandle, size: SDKHandle): Rect3DSwift declarationinit(origin: simd_float3 = .zero, size: simd_float3)Creates a rectangle from single-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 double-precision.
static initPoints(points: Array<Point3D>): Rect3DSwift declarationinit(points: [Point3D])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): Rect3DSwift declarationfunc sheared(_ shear: AxisWithFactors) -> Rect3DReturns 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.
applying22312(scaledPose: ScaledPose3D): Rect3DSwift declarationfunc applying(_ scaledPose: ScaledPose3D) -> Rect3DReturns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.
applying23769(pose: Pose3D): Rect3DSwift declarationfunc applying(_ pose: Pose3D) -> Rect3DReturns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.
containsAnyOf(points: Array<Point3D>): booleanSwift declarationfunc contains(anyOf points: [Point3D]) -> 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.
distance(other: Rect3D): numberSwift declarationfunc distance(to other: Rect3D) -> DoubleReturns the distance between the origins of two rectangle.
rotation(other: Rect3D): Rotation3DSwift declarationfunc rotation(to other: Rect3D) -> Rotation3DReturns the rotation around @p (0,0,0) from the first rectangle to the second rectangle.
scaledBy(x?: number, y?: number, z?: number): Rect3DSwift declarationfunc scaledBy(x: Double = 1, y: Double = 1, z: Double = 1) -> Rect3DReturns 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: Size3D): voidSwift declarationmutating func formInset(by dXYZ: Size3D)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: Rect3DFloat): Rect3DSwift declarationinit(_ rect: Rect3DFloat)Returns a double-precision rectangle from a single-precision rectangle.
static init80175(): Rect3DSwift declarationinit()No declarations were skipped in this snapshot.