A point's spherical coordinates.
radius — the radius, or the Euclidean distance
(straight-line distance) from the point to the origin. Default is 1.0
.
phi — polar angle in radians from the y (up) axis. Default is 0
.
theta — equator angle in radians around the y (up) axis. Default is 0
.
The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.
Returns a new spherical with the same radius, phi and theta properties as this one.
Copies the values of the passed Spherical's radius, phi and theta properties to this spherical.
Restricts the polar angle phi to be between 0.000001 and pi - 0.000001.
Sets values of this spherical's radius, phi and theta properties.
Sets values of this spherical's radius, phi and theta properties from the Vector3.
Sets values of this spherical's radius, phi and theta properties from Cartesian coordinates.
For more info on how to obtain the source code of this module see this page.