[name]
A point's spherical coordinates.
Constructor
[name]( [page:Float radius], [page:Float phi], [page:Float theta] )
radius -- [page:Float] the radius
phi -- [page:Float] polar angle from the y (up) axis
theta -- [page:Float] equator angle around the y (up) axis
The poles (phi) are at the positive and negative y axis. The equator (theta) starts at positive z.
Properties
[property:Float radius]
[property:Float phi]
[property:Float theta]
Methods
[method:Spherical set]( [page:Float radius], [page:Float phi], [page:Float theta] ) [page:Spherical this]
Sets values of this spherical's component coordinates.
[method:Spherical copy]( [page:Spherical s] ) [page:Spherical this]
Copies value of *s* to this spherical.
[method:Spherical clone]() [page:Spherical this]
Clones this spherical.
[method:Spherical makeSafe]() [page:Spherical this]
Restricts the polar angle phi to be between 0.000001 and pi - 0.000001.
[method:Spherical setFromVector3]( [page:Vector3 v] ) [page:Spherical this]
Sets this object from the vector *v*.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]