API Reference / unitVector · function
Function: unitVector()
function unitVector(lonDeg, latDeg): Vec3;
Unit vector on the sphere for an (ecliptic longitude, latitude) pair, in the ecliptic frame: x toward 0 Aries, z toward the north ecliptic pole.
Parameters
| Parameter | Type |
|---|---|
lonDeg | number |
latDeg | number |