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. |
Members
dec
Set this.dec
dec
Get this.dec
ra
Set this.ra
ra
Get this.ra
Methods
clone() → {Equatorial}
Makes a copy of this vector.
Returns:
copy of this vector.
- Type
- Equatorial
correctCoords()
Corrects coordinates to their boundary values
fromSpherical(vec)
Set this object from spherical representation.
Parameters:
Name | Type | Description |
---|---|---|
vec |
Spherical | spherical representation of a vector. |
fromVector3(vec)
Set this object from rectangular representation.
Parameters:
Name | Type | Description |
---|---|---|
vec |
THREE.Vector3 | rectangular representation of a vector. |
toSpherical() → {Spherical}
Returns the spherical representation of this object.
Returns:
spherical representation of this object.
- Type
- Spherical
toVector3() → {THREE.Vector3}
Returns the rectangular representation of this object.
Returns:
rectangular representation of this object.
- Type
- THREE.Vector3