<!--
{
  "documentType" : "article",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/Spatial-macros",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Macros & Global Variables"
}
-->

# Macros & Global Variables

## Topics

### Macros

[`#define SPATIAL_INLINE`](/documentation/Spatial/SPATIAL_INLINE)

[`#define SPATIAL_OVERLOADABLE`](/documentation/Spatial/SPATIAL_OVERLOADABLE)

[`#define SPATIAL_REFINED_FOR_SWIFT`](/documentation/Spatial/SPATIAL_REFINED_FOR_SWIFT)

[`#define SPATIAL_SWIFT_NAME(_name)`](/documentation/Spatial/SPATIAL_SWIFT_NAME)

[`#define SPDefaultTolerance`](/documentation/Spatial/SPDefaultTolerance)

### Deprecated global variables

[`let x: Axis3D`](/documentation/Spatial/x)

The operation is along the x-axis.

[`let y: Axis3D`](/documentation/Spatial/y)

The operation is along the y-axis.

[`let z: Axis3D`](/documentation/Spatial/z)

The operation is along the z-axis.



---

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)