Spherical

constructor(radius: Double = 1.0, phi: Double = 0.0, theta: Double = 0.0)

Parameters

radius

The radius, or the Euclidean distance (straight-line distance) from the point to the origin.

phi

The polar angle in radians from the y (up) axis.

theta

The equator/azimuthal angle in radians around the y (up) axis.