One Logo Pool Ball
Spatial · IOS API REFERENCE

Rect3DFloat

struct · iOS 26.0+ · SDK 27.1

struct Rect3DFloat

Members (56)

method · iOS 26.0+

applying

TypeScript
applying(transform: AffineTransform3DFloat): Rect3DFloat
Swift declaration
func applying(_ transform: AffineTransform3DFloat) -> Rect3DFloat
method · iOS 26.0+

applying

TypeScript
applying30461(transform: ProjectiveTransform3DFloat): Rect3DFloat
Swift declaration
func applying(_ transform: ProjectiveTransform3DFloat) -> Rect3DFloat
method · iOS 26.0+

contains

TypeScript
containsPoint(other: Point3DFloat): boolean
Swift declaration
func contains(point other: Point3DFloat) -> Bool
method · iOS 26.0+

contains

TypeScript
contains(other: Rect3DFloat): boolean
Swift declaration
func contains(_ other: Rect3DFloat) -> Bool
get · iOS 26.0+

center

TypeScript
get center(): Point3DFloat
Swift declaration
var center: Point3DFloat { get }
get · iOS 26.0+

max

TypeScript
get max(): Point3DFloat
Swift declaration
var max: Point3DFloat { get }
get · iOS 26.0+

min

TypeScript
get min(): Point3DFloat
Swift declaration
var min: Point3DFloat { get }
method · iOS 26.0+

inset

TypeScript
inset(dXYZ: Size3DFloat): Rect3DFloat
Swift declaration
func inset(by dXYZ: Size3DFloat) -> Rect3DFloat
get · iOS 26.0+

integral

TypeScript
get integral(): Rect3DFloat
Swift declaration
var integral: Rect3DFloat { get }
method · iOS 26.0+

intersects

TypeScript
intersects(other: Rect3DFloat): boolean
Swift declaration
func intersects(_ other: Rect3DFloat) -> Bool
get · iOS 26.0+

isEmpty

TypeScript
get isEmpty(): boolean
Swift declaration
var isEmpty: Bool { get }
get · iOS 26.0+

isFinite

TypeScript
get isFinite(): boolean
Swift declaration
var isFinite: Bool { get }
get · iOS 26.0+

isNaN

TypeScript
get isNaN(): boolean
Swift declaration
var isNaN: Bool { get }
get · iOS 26.0+

isNull

TypeScript
get isNull(): boolean
Swift declaration
var isNull: Bool { get }
get · iOS 26.0+

isZero

TypeScript
get isZero(): boolean
Swift declaration
var isZero: Bool { get }
init · iOS 26.0+

init

TypeScript
static initCenterSize(center: Point3DFloat, size: Size3DFloat): Rect3DFloat
Swift declaration
init(center: Point3DFloat, size: Size3DFloat)
init · iOS 26.0+

init

TypeScript
static initOriginSize(origin: Point3DFloat, size: Size3DFloat): Rect3DFloat
Swift declaration
init(origin: Point3DFloat, size: Size3DFloat)
method · iOS 26.0+

rotated

TypeScript
rotatedBy(rotation: Rotation3DFloat): Rect3DFloat
Swift declaration
func rotated(by rotation: Rotation3DFloat) -> Rect3DFloat
method · iOS 26.0+

rotated

TypeScript
rotatedByAround(rotation: Rotation3DFloat, pivot: Point3DFloat): Rect3DFloat
Swift declaration
func rotated(by rotation: Rotation3DFloat, around pivot: Point3DFloat) -> Rect3DFloat
method · iOS 26.0+

rotated

TypeScript
rotatedBy46216(quaternion: SDKHandle): Rect3DFloat
Swift declaration
func rotated(by quaternion: simd_quatf) -> Rect3DFloat
method · iOS 26.0+

rotated

TypeScript
rotatedByAround98628(quaternion: SDKHandle, pivot: Point3DFloat): Rect3DFloat
Swift declaration
func rotated(by quaternion: simd_quatf, around pivot: Point3DFloat) -> Rect3DFloat
method · iOS 26.0+

scaled

TypeScript
scaled(scale: Size3DFloat): Rect3DFloat
Swift declaration
func scaled(by scale: Size3DFloat) -> Rect3DFloat
method · iOS 26.0+

uniformlyScaled

TypeScript
uniformlyScaled(scale: number): Rect3DFloat
Swift declaration
func uniformlyScaled(by scale: Float) -> Rect3DFloat
get · iOS 26.0+

standardized

TypeScript
get standardized(): Rect3DFloat
Swift declaration
var standardized: Rect3DFloat { get }
method · iOS 26.0+

translated

TypeScript
translated(offset: Vector3DFloat): Rect3DFloat
Swift declaration
func translated(by offset: Vector3DFloat) -> Rect3DFloat
method · iOS 26.0+

union

TypeScript
union(other: Rect3DFloat): Rect3DFloat
Swift declaration
func union(_ other: Rect3DFloat) -> Rect3DFloat
get · iOS 26.0+

origin

TypeScript
get origin(): Point3DFloat
Swift declaration
var origin: Point3DFloat
set · iOS 26.0+

origin

TypeScript
set origin(value: Point3DFloat)
Swift declaration
var origin: Point3DFloat
get · iOS 26.0+

size

TypeScript
get size(): Size3DFloat
Swift declaration
var size: Size3DFloat
set · iOS 26.0+

size

TypeScript
set size(value: Size3DFloat)
Swift declaration
var size: Size3DFloat
get

infinity

TypeScript
static get infinity(): Rect3DFloat
Swift declaration
static let infinity: Rect3DFloat
get

zero

TypeScript
static get zero(): Rect3DFloat
Swift declaration
static let zero: Rect3DFloat
init · iOS 26.0+

init

TypeScript
static initOriginSize65486(origin: Point3DFloat, size: Size3DFloat): Rect3DFloat
Swift declaration
init(origin: Point3DFloat, size: Size3DFloat)
method · iOS 26.0+

unapplying

TypeScript
unapplying(scaledPose: ScaledPose3DFloat): Rect3DFloat
Swift declaration
func unapplying(_ scaledPose: ScaledPose3DFloat) -> Rect3DFloat

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

method · iOS 26.0+

unapplying

TypeScript
unapplying47908(transform: AffineTransform3DFloat): Rect3DFloat
Swift declaration
func unapplying(_ transform: AffineTransform3DFloat) -> Rect3DFloat

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

method · iOS 26.0+

unapplying

TypeScript
unapplying93907(transform: ProjectiveTransform3DFloat): Rect3DFloat
Swift declaration
func unapplying(_ transform: ProjectiveTransform3DFloat) -> Rect3DFloat

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

method · iOS 26.0+

unapplying

TypeScript
unapplying3896(pose: Pose3DFloat): Rect3DFloat
Swift declaration
func unapplying(_ pose: Pose3DFloat) -> Rect3DFloat

Returns 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 · 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+

cornerPoints

TypeScript
get cornerPoints(): Array<Point3DFloat>
Swift declaration
var 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 · iOS 26.0+

customMirror

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

The custom mirror for this instance.

method · iOS 26.0+

intersection

TypeScript
intersection(other: Rect3DFloat): (Rect3DFloat) | null
Swift declaration
func intersection(_ other: Rect3DFloat) -> Rect3DFloat?

Returns the intersection of two rectangles. - Parameter other: The second rectangle. - Returns The intersection of `self` and `other`.

init · iOS 26.0+

init

TypeScript
static initCenterSize82956(center: Vector3DFloat, size: Vector3DFloat): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initCenterSize52279(center: SDKHandle, size: SDKHandle): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initCenterSize43421(center: SDKHandle, size: SDKHandle): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initOriginSize31215(origin: Vector3DFloat, size: Vector3DFloat): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initOriginSize79764(origin: SDKHandle, size: SDKHandle): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initOriginSize32818(origin: SDKHandle, size: SDKHandle): Rect3DFloat
Swift declaration
init(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.

init · iOS 26.0+

init

TypeScript
static initPoints(points: Array<Point3DFloat>): Rect3DFloat
Swift declaration
init(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.

method · iOS 26.0+

sheared

TypeScript
sheared(shear: AxisWithFactors): Rect3DFloat
Swift declaration
func sheared(_ shear: AxisWithFactors) -> Rect3DFloat

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

method · iOS 26.0+

applying

TypeScript
applying5507(scaledPose: ScaledPose3DFloat): Rect3DFloat
Swift declaration
func applying(_ scaledPose: ScaledPose3DFloat) -> Rect3DFloat

Returns the primitive that results from applying a scaled pose to the primitive. - Parameter pose: The scaled pose. - Returns The transformed primitive.

method · iOS 26.0+

applying

TypeScript
applying70360(pose: Pose3DFloat): Rect3DFloat
Swift declaration
func applying(_ pose: Pose3DFloat) -> Rect3DFloat

Returns the primitive that results from applying a pose to the primitive. - Parameter pose: The pose. - Returns The transformed primitive.

method · iOS 26.0+

contains

TypeScript
containsAnyOf(points: Array<Point3DFloat>): boolean
Swift declaration
func contains(anyOf points: [Point3DFloat]) -> Bool

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

method · iOS 26.0+

scaledBy

TypeScript
scaledBy(x?: number, y?: number, z?: number): Rect3DFloat
Swift declaration
func scaledBy(x: Float = 1, y: Float = 1, z: Float = 1) -> Rect3DFloat

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

method · iOS 26.0+

formInset

TypeScript
formInset(dXYZ: Size3DFloat): void
Swift declaration
mutating 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.

init · iOS 26.0+

init

TypeScript
static init(rect: Rect3D): Rect3DFloat
Swift declaration
init(_ rect: Rect3D)

Returns a single-precision rectangle from a double-precision rectangle.

init · iOS 26.0+

init

TypeScript
static init22853(): Rect3DFloat
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All Spatial types →