Class: Equatorial

Basic.Coord.Equatorial(ra, dec)

Representation of an unity vector in equatorial coordinates.

Constructor

new Equatorial(ra, dec)

Creates a RA 24hs equatorial representation of a unity vector.
Parameters:
Name Type Default Description
ra number 0 the Right Ascension (0 to 24hs) coordinate.
dec number 0 the Declination (-90º to 90º) coordinate.
Source:

Members

dec

Set this.dec
Source:

dec

Get this.dec
Source:

ra

Set this.ra
Source:

ra

Get this.ra
Source:

Methods

clone() → {Equatorial}

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

correctCoords()

Corrects coordinates to their boundary values
Source:

fromSpherical(vec)

Set this object from spherical representation.
Parameters:
Name Type Description
vec Spherical spherical representation of a vector.
Source:

fromVector3(vec)

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

toSpherical() → {Spherical}

Returns the spherical representation of this object.
Source:
Returns:
spherical representation of this object.
Type
Spherical

toVector3() → {THREE.Vector3}

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