<!--
{
  "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/Size3DFloat",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "c:@UA@SPSize3DFloat"
  },
  "title" : "Size3DFloat"
}
-->

# Size3DFloat

A single-precision structure that contains width, height, and depth values.

```
struct Size3DFloat
```

## Topics

### Operators

[`static func * (Float, Size3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/*(_:_:)-124fk)

Returns a size with each element mulitplied by a scalar value.

[`static func * (Size3DFloat, Float) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/*(_:_:)-544n3)

Returns a size with each element mulitplied by a scalar value.

[`static func * (ProjectiveTransform3DFloat, Size3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/*(_:_:)-57yj1)

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

[`static func * (Pose3DFloat, Size3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/*(_:_:)-61lpp)

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

[`static func * (AffineTransform3DFloat, Size3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/*(_:_:)-7txph)

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

[`static func *= (inout Size3DFloat, Float)`](/documentation/Spatial/Size3DFloat/*=(_:_:))

Calculates the element-wise product of a size and a scalar value and stores the result in the left-hand-side variable.

[`static func += (inout Size3DFloat, Vector3DFloat)`](/documentation/Spatial/Size3DFloat/+=(_:_:)-6yxe6)

Calculates the size that’s the element-wise sum of a size and a vector and stores the result in the left-hand-side variable.

[`static func - (Size3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/-(_:))

Returns a size that’s the element-wise negation of the size.

[`static func -= (inout Size3DFloat, Vector3DFloat)`](/documentation/Spatial/Size3DFloat/-=(_:_:)-4iec2)

Calculates the size that’s the element-wise difference of a size and a vector and stores the result in the left-hand-side variable.

[`static func / (Size3DFloat, Float) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/_(_:_:))

Returns a size with each element divided by a scalar value.

[`static func /= (inout Size3DFloat, Float)`](/documentation/Spatial/Size3DFloat/_=(_:_:))

Calculates the element-wise division of a size and a scalar value and stores the result in the left-hand-side variable.

### Initializers

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

[`init(simd_float3)`](/documentation/Spatial/Size3DFloat/init(_:)-208lc)

Returns a size structure from the specified 3-element vector.

[`init(Vector3DFloat)`](/documentation/Spatial/Size3DFloat/init(_:)-3z2u6)

Returns a size structure from the specified Spatial vector.

[`init(Point3DFloat)`](/documentation/Spatial/Size3DFloat/init(_:)-4eoby)

Returns a size structure from the specified point.

[`init(Size3D)`](/documentation/Spatial/Size3DFloat/init(_:)-4r1ha)

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

[`init(simd_double3)`](/documentation/Spatial/Size3DFloat/init(_:)-6y249)

Returns a new point from a single-precision vector.

[`init(simd_packed_float4)`](/documentation/Spatial/Size3DFloat/init(_:)-8nzza)

Creates a Spatial size from a simd packed vector.

[`init(vector: simd_float3)`](/documentation/Spatial/Size3DFloat/init(vector:))

[`init<T>(width: T, height: T, depth: T)`](/documentation/Spatial/Size3DFloat/init(width:height:depth:)-8h26f)

Returns a new point from the floating-point values.

[`init(width: Float, height: Float, depth: Float)`](/documentation/Spatial/Size3DFloat/init(width:height:depth:)-9u3g4)

Returns a size structure from the specified values.

### Instance Properties

[`var depth: Float`](/documentation/Spatial/Size3DFloat/depth)

[`var height: Float`](/documentation/Spatial/Size3DFloat/height)

[`var vector: simd_float3`](/documentation/Spatial/Size3DFloat/vector)

[`var width: Float`](/documentation/Spatial/Size3DFloat/width)

### Instance Methods

[`func applying(ScaledPose3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/applying(_:)-4x5w1)

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

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

Returns a sheared size.

[`func unapplying(ScaledPose3DFloat) -> Size3DFloat`](/documentation/Spatial/Size3DFloat/unapplying(_:)-9dyaz)

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

### Type Properties

[`static let one: Size3DFloat`](/documentation/Spatial/Size3DFloat/one)

A size with a width, height, and depth of `1`.

### Default Implementations

[AdditiveArithmetic Implementations](/documentation/Spatial/Size3DFloat/AdditiveArithmetic-Implementations)

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

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

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

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

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

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

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

---

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)