Companion

Functions

Link copied to clipboard
fun clone(spherical: Spherical, result: Spherical? = definedExternally): Spherical

Creates a duplicate of a Spherical.

Link copied to clipboard
fun equals(left: Spherical, right: Spherical): Boolean

Returns true if the first spherical is equal to the second spherical, false otherwise.

Link copied to clipboard
fun equalsEpsilon(left: Spherical, right: Spherical, epsilon: Double? = definedExternally): Boolean

Returns true if the first spherical is within the provided epsilon of the second spherical, false otherwise.

Link copied to clipboard
fun fromCartesian3(cartesian3: Cartesian3, result: Spherical? = definedExternally): Spherical

Converts the provided Cartesian3 into Spherical coordinates.

Link copied to clipboard
fun normalize(spherical: Spherical, result: Spherical? = definedExternally): Spherical

Computes the normalized version of the provided spherical.