Spherical

@Serializable
data class Spherical(val theta: Double, val phi: Double, val radius: Double) : LinearType<Spherical> (source)

Spherical coordinate. The poles (phi) are at the positive and negative y-axis. The equator starts at positive z.

Parameters

theta

the counterclockwise angle from the z-axis at which a point in the xz-plane lies.

phi

the angle measured from the y-axis. The north-pole is at 0 degrees, the south-pole is at 180 degrees.

radius

the radius of the sphere

See also

Constructors

Link copied to clipboard
constructor(theta: Double, phi: Double, radius: Double)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun div(scale: Double): Spherical
Link copied to clipboard
Link copied to clipboard
open operator override fun minus(right: Spherical): Spherical
Link copied to clipboard
open operator override fun plus(right: Spherical): Spherical
Link copied to clipboard
open operator override fun times(scale: Double): Spherical
operator fun times(scale: Spherical): Spherical

Properties

Link copied to clipboard
Link copied to clipboard
val phi: Double

the angle measured from the y-axis. The north-pole is at 0 degrees, the south-pole is at 180 degrees.

Link copied to clipboard

the radius of the sphere

Link copied to clipboard

the counterclockwise angle from the z-axis at which a point in the xz-plane lies.