API Reference / unitVector · function

Function: unitVector()

function unitVector(lonDeg, latDeg): Vec3;

Defined in: spherical.ts:17

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

lonDeg

number

latDeg

number

Returns

Vec3