openrndr / org.openrndr.math / Spherical

Spherical

data class Spherical : LinearType<Spherical> (source)

Constructors

<init>

Spherical(theta: Double, phi: Double, radius: Double)

Properties

cartesian

val cartesian: Vector3

phi

val phi: Double

radius

val radius: Double

theta

val theta: Double

Functions

div

operator fun div(s: Double): Spherical

makeSafe

fun makeSafe(): Spherical

minus

operator fun minus(s: Spherical): Spherical

plus

operator fun plus(s: Spherical): Spherical

times

operator fun times(s: Spherical): Spherical
operator fun times(s: Double): Spherical

Companion Object Functions

fromVector

fun fromVector(vector: Vector3): Spherical