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

# Axis3D

Constants that describe an axis.

```
struct Axis3D
```

## Topics

### Constants

[`static var x: Axis3D`](/documentation/Spatial/Axis3D/x)

The operation is along the x-axis.

[`static var y: Axis3D`](/documentation/Spatial/Axis3D/y)

The operation is along the y-axis.

[`static var z: Axis3D`](/documentation/Spatial/Axis3D/z)

### Initializers

[`init(UInt32)`](/documentation/Spatial/Axis3D/init(_:))

Creates a new 3D axis structure.

[`init(rawValue: UInt32)`](/documentation/Spatial/Axis3D/init(rawValue:))

Creates a new instance with the specified raw value.

### Inspecting the axis

[`var rawValue: UInt32`](/documentation/Spatial/Axis3D/rawValue)

The corresponding value of the raw type.

### Default Implementations

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

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)