<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Rect3DFloat",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "c:@SA@SPRect3DFloat"
  },
  "title" : "Rect3DFloat"
}
-->

# Rect3DFloat

A single-precision structure that contains the location and dimensions of a 3D rectangle.

```
struct Rect3DFloat
```

## Topics

### Operators

[`static func * (ProjectiveTransform3DFloat, Rect3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/*(_:_:)-1iaiz)

Returns the rectangle that results from applying the transform to the rectangle.

[`static func * (Pose3DFloat, Rect3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/*(_:_:)-1xai0)

Returns the rectangle that results from applying the pose to the rectangle.

[`static func * (AffineTransform3DFloat, Rect3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/*(_:_:)-2fdne)

Returns the rectangle that results from applying the transform to the rectangle.

### Initializers

[`init()`](/documentation/Spatial/Rect3DFloat/init())

[`init(Rect3D)`](/documentation/Spatial/Rect3DFloat/init(_:))

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

[`init(center: simd_double3, size: simd_double3)`](/documentation/Spatial/Rect3DFloat/init(center:size:)-1gsbj)

Creates a rectangle from single-precision vectors that describe the center and size.

[`init(center: simd_float3, size: simd_float3)`](/documentation/Spatial/Rect3DFloat/init(center:size:)-2c8oz)

Creates a rectangle from simd vectors that describe the center and size.

[`init(center: Vector3DFloat, size: Vector3DFloat)`](/documentation/Spatial/Rect3DFloat/init(center:size:)-92ay9)

Creates a rectangle from Spatial vectors that describe the center and size.

[`init(center: Point3DFloat, size: Size3DFloat)`](/documentation/Spatial/Rect3DFloat/init(center:size:)-e8la)

Creates a rectangle at the specified center with the specified size.

[`init(origin: simd_float3, size: simd_float3)`](/documentation/Spatial/Rect3DFloat/init(origin:size:)-27)

Creates a rectangle from simd vectors that describe the origin and size.

[`init(origin: Point3DFloat, size: Size3DFloat)`](/documentation/Spatial/Rect3DFloat/init(origin:size:)-8tqau)

[`init(origin: Point3DFloat, size: Size3DFloat)`](/documentation/Spatial/Rect3DFloat/init(origin:size:)-9his9)

[`init(origin: simd_double3, size: simd_double3)`](/documentation/Spatial/Rect3DFloat/init(origin:size:)-uw6h)

Creates a rectangle from double-precision vectors that describe the origin and size.

[`init(origin: Vector3DFloat, size: Vector3DFloat)`](/documentation/Spatial/Rect3DFloat/init(origin:size:)-ywzp)

Creates a rectangle from Spatial vectors that describe the origin and size.

[`init(points: [Point3DFloat])`](/documentation/Spatial/Rect3DFloat/init(points:))

Creates a rectangle that’s the bounding box of the specified points.

### Instance Properties

[`var center: Point3DFloat`](/documentation/Spatial/Rect3DFloat/center)

[`var cornerPoints: [Point3DFloat]`](/documentation/Spatial/Rect3DFloat/cornerPoints)

Returns the corner points of the rectangle.

[`var integral: Rect3DFloat`](/documentation/Spatial/Rect3DFloat/integral)

[`var isEmpty: Bool`](/documentation/Spatial/Rect3DFloat/isEmpty)

[`var isNull: Bool`](/documentation/Spatial/Rect3DFloat/isNull)

[`var max: Point3DFloat`](/documentation/Spatial/Rect3DFloat/max)

[`var min: Point3DFloat`](/documentation/Spatial/Rect3DFloat/min)

[`var origin: Point3DFloat`](/documentation/Spatial/Rect3DFloat/origin)

The origin of the rectangle.

[`var standardized: Rect3DFloat`](/documentation/Spatial/Rect3DFloat/standardized)

Returns a rectangle with a positive width and height.

### Instance Methods

[`func applying(ScaledPose3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/applying(_:)-7i8x5)

Returns the primitive that results from applying a scaled pose to the primitive.

[`func formInset(by: Size3DFloat)`](/documentation/Spatial/Rect3DFloat/formInset(by:))

Insets the rectangle by the specified size.

[`func inset(by: Size3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/inset(by:))

[`func intersects(Rect3DFloat) -> Bool`](/documentation/Spatial/Rect3DFloat/intersects(_:))

[`func rotated(by: Rotation3DFloat, around: Point3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/rotated(by:around:)-1g90c)

[`func rotated(by: simd_quatf, around: Point3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/rotated(by:around:)-9yw64)

[`func sheared(AxisWithFactors) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/sheared(_:))

Returns a sheared rectangle.

[`func unapplying(ScaledPose3DFloat) -> Rect3DFloat`](/documentation/Spatial/Rect3DFloat/unapplying(_:)-4dm1d)

Returns the primitive that results from applying a scaled pose to the primitive.

### Default Implementations

[CustomReflectable Implementations](/documentation/Spatial/Rect3DFloat/CustomReflectable-Implementations)

[Decodable Implementations](/documentation/Spatial/Rect3DFloat/Decodable-Implementations)

[Encodable Implementations](/documentation/Spatial/Rect3DFloat/Encodable-Implementations)

[Equatable Implementations](/documentation/Spatial/Rect3DFloat/Equatable-Implementations)

[Hashable Implementations](/documentation/Spatial/Rect3DFloat/Hashable-Implementations)

[Primitive3DProtocol Implementations](/documentation/Spatial/Rect3DFloat/Primitive3DProtocol-Implementations)

[Scalable3DProtocol Implementations](/documentation/Spatial/Rect3DFloat/Scalable3DProtocol-Implementations)

[VolumetricProtocol Implementations](/documentation/Spatial/Rect3DFloat/VolumetricProtocol-Implementations)

## Relationships

### Conforms To

[`CustomReflectable`](/documentation/Swift/CustomReflectable)

[`VolumetricProtocol`](/documentation/Spatial/VolumetricProtocol)

[`ProjectiveTransformable3D`](/documentation/Spatial/ProjectiveTransformable3D)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Escapable`](/documentation/Swift/Escapable)

[`Rotatable3DProtocol`](/documentation/Spatial/Rotatable3DProtocol)

[`Decodable`](/documentation/Swift/Decodable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Primitive3DProtocol`](/documentation/Spatial/Primitive3DProtocol)

[`Encodable`](/documentation/Swift/Encodable)

[`SpatialTypeProtocol`](/documentation/Spatial/SpatialTypeProtocol)

[`Copyable`](/documentation/Swift/Copyable)

[`ProjectiveTransformable3DFloat`](/documentation/Spatial/ProjectiveTransformable3DFloat)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Translatable3DProtocol`](/documentation/Spatial/Translatable3DProtocol)

[`Scalable3DProtocol`](/documentation/Spatial/Scalable3DProtocol)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)