Contents

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 x Cartesian coordinate.

  • y:

    The y Cartesian coordinate.

  • z:

    The z Cartesian coordinate.