<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/SphericalCoordinates3D",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "c:@UA@SPSphericalCoordinates3D"
  },
  "title" : "SphericalCoordinates3D"
}
-->

# SphericalCoordinates3D

A structure that defines spherical coordinates in radial, inclination, azimuthal order.

```
struct SphericalCoordinates3D
```

## Topics

### Creating a spherical coordinates structure

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

Creates a spherical coordinates structure.

[`init(Vector3D)`](/documentation/Spatial/SphericalCoordinates3D/init(_:)-2eoox)

Creates a spherical coordinates structure from the Cartesian coordinates represented by the specified simd vector.

[`init(Point3D)`](/documentation/Spatial/SphericalCoordinates3D/init(_:)-45qdy)

Creates a spherical coordinates structure from the Cartesian coordinates represented by the specified Spatial point.

[`init(simd_double3)`](/documentation/Spatial/SphericalCoordinates3D/init(_:)-1xzjz)

Creates a new spherical coordinates structure from the specified Cartesian coordinates represented by a simd vector.

[`init(radius: Double, inclination: Angle2D, azimuth: Angle2D)`](/documentation/Spatial/SphericalCoordinates3D/init(radius:inclination:azimuth:))

Creates a new spherical coordinates structure with the specified radius, inclination, and azimuth.

[`init(vector: simd_double3)`](/documentation/Spatial/SphericalCoordinates3D/init(vector:))

Creates a new spherical coordinates structure from the specified Cartesian coordinates represented by a simd vector.

[`init(x: Double, y: Double, z: Double)`](/documentation/Spatial/SphericalCoordinates3D/init(x:y:z:))

Creates a new spherical coordinates structure from the specified Cartesian coordinates.

[`static SPSphericalCoordinates3D SPSphericalCoordinates3DMakeWithCartesianPoint(SPPoint3D xyz);`](/documentation/Spatial/SPSphericalCoordinates3DMakeWithCartesianPoint)

Creates a spherical coordinates structure from the Cartesian coordinates represented by the specified Spatial point.

[`static SPSphericalCoordinates3D SPSphericalCoordinates3DMakeWithCartesianVector(simd_double3 xyz);`](/documentation/Spatial/SPSphericalCoordinates3DMakeWithCartesianVector-940l6)

Creates a spherical coordinates structure from the Cartesian coordinates represented by the specified simd vector.

[`static SPSphericalCoordinates3D SPSphericalCoordinates3DMakeWithCartesianVector(SPVector3D xyz);`](/documentation/Spatial/SPSphericalCoordinates3DMakeWithCartesianVector-9pfp3)

### Inspecting a spherical coordinates structure’s properties

[`var azimuth: Angle2D`](/documentation/Spatial/SphericalCoordinates3D/azimuth)

The azimuthal angle, in radians.

[`var inclination: Angle2D`](/documentation/Spatial/SphericalCoordinates3D/inclination)

The inclination angle, in radians.

[`var radius: Double`](/documentation/Spatial/SphericalCoordinates3D/radius)

The distance to the origin.

[`SPAngle azimuth;`](/documentation/Spatial/SPSphericalCoordinates3D/azimuth)

The azimuthal angle, in radians.

[`SPAngle inclination;`](/documentation/Spatial/SPSphericalCoordinates3D/inclination)

The inclination angle, in radians.

[`double radius;`](/documentation/Spatial/SPSphericalCoordinates3D/radius)

The distance to the origin.

[`var vector: simd_double3`](/documentation/Spatial/SphericalCoordinates3D/vector)

A simd three-element vector that contains the radius, inclination, and azimuth values.

[`var customMirror: Mirror`](/documentation/Spatial/SphericalCoordinates3D/customMirror)

The custom mirror for this instance.

### Initializers

[`init(SphericalCoordinates3DFloat)`](/documentation/Spatial/SphericalCoordinates3D/init(_:)-1hxjg)

Returns a double-precision spherical coordinates structure from a single-precision spherical coordinates structure.

[`init(simd_packed_double4)`](/documentation/Spatial/SphericalCoordinates3D/init(_:)-91oq0)

Creates a Spatial spherical coordinates structure from a simd packed vector.

### Default Implementations

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

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

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

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

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

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

---

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)