Constructor
new Spherical(phi, theta)
Creates a spherical representation of a unity vector.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
phi |
number | 0 | azimuthal angle: 0 to 2*pi. |
theta |
number | 0 | polar angle: 0 to pi. |
Members
phi
Set this.phi
phi
Get this.phi
theta
Set this.theta
theta
Get this.theta
Methods
clone() → {Spherical}
Makes a copy of this vector.
Returns:
copy of this vector.
- Type
- Spherical
correctCoords()
Corrects coordinates to their boundary values.
fromVector3(vec)
Set this object from rectangular representation.
Parameters:
Name | Type | Description |
---|---|---|
vec |
THREE.Vector3 | rectangular representation of a vector. |
toVector3() → {THREE.Vector3}
Returns the rectangular representation of this object.
Returns:
rectangular representation of this object.
- Type
- THREE.Vector3