<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Spatial",
  "identifier" : "/documentation/Spatial/SphericalCoordinates3DFloat/init(x:y:z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Spatial"
    ],
    "preciseIdentifier" : "s:So29SPSphericalCoordinates3DFloata7SpatialE1x1y1zABSf_S2ftcfc"
  },
  "title" : "init(x:y:z:)"
}
-->

# init(x:y:z:)

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

```
init(x: Float, y: Float, z: Float)
```

## Parameters

`x`

The `x` Cartesian coordinate.

`y`

The `y` Cartesian coordinate.

`z`

The `z` Cartesian coordinate.

---

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)