init(x:y:z:)
Creates a new spherical coordinates structure from the specified Cartesian coordinates.
Declaration
init(x: Float, y: Float, z: Float)Parameters
- x:
The
xCartesian coordinate. - y:
The
yCartesian coordinate. - z:
The
zCartesian coordinate.