Class: Spherical

Basic.Coord.Spherical(phi, theta)

Representation of an unity vector in spherical coordinates.

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.
Source:

Members

phi

Set this.phi
Source:

phi

Get this.phi
Source:

theta

Set this.theta
Source:

theta

Get this.theta
Source:

Methods

clone() → {Spherical}

Makes a copy of this vector.
Source:
Returns:
copy of this vector.
Type
Spherical

correctCoords()

Corrects coordinates to their boundary values.
Source:

fromVector3(vec)

Set this object from rectangular representation.
Parameters:
Name Type Description
vec THREE.Vector3 rectangular representation of a vector.
Source:

toVector3() → {THREE.Vector3}

Returns the rectangular representation of this object.
Source:
Returns:
rectangular representation of this object.
Type
THREE.Vector3