Transforms

external object Transforms(source)

Contains functions for transforming positions to various reference frames.

See also

Functions

Link copied to clipboard
external fun computeFixedToIcrfMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3?

Computes a rotation matrix to transform a point or vector from the Earth-Fixed frame axes (ITRF) to the International Celestial Reference Frame (GCRF/ICRF) inertial frame axes at a given time. This function may return undefined if the data necessary to do the transformation is not yet loaded.

Link copied to clipboard
external fun computeIcrfToCentralBodyFixedMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3?

The default function to compute a rotation matrix to transform a point or vector from the International Celestial Reference Frame (GCRF/ICRF) inertial frame axes to the central body, typically Earth, fixed frame axis at a given time for use in lighting and transformation from inertial reference frames. This function may return undefined if the data necessary to do the transformation is not yet loaded.

Link copied to clipboard
external fun computeIcrfToFixedMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3?

Computes a rotation matrix to transform a point or vector from the International Celestial Reference Frame (GCRF/ICRF) inertial frame axes to the Earth-Fixed frame axes (ITRF) at a given time. This function may return undefined if the data necessary to do the transformation is not yet loaded.

Link copied to clipboard
external fun computeIcrfToMoonFixedMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3

Computes a rotation matrix to transform a point or vector from the International Celestial Reference Frame (GCRF/ICRF) inertial frame axes to the Moon-Fixed frame axes at a given time.

Link copied to clipboard
external fun computeMoonFixedToIcrfMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3

Computes a rotation matrix to transform a point or vector from the Moon-Fixed frame axes to the International Celestial Reference Frame (GCRF/ICRF) inertial frame axes at a given time.

Link copied to clipboard
external fun computeTemeToPseudoFixedMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3

Computes a rotation matrix to transform a point or vector from True Equator Mean Equinox (TEME) axes to the pseudo-fixed axes at a given time. This method treats the UT1 time standard as equivalent to UTC.

Link copied to clipboard
suspend external fun preloadIcrfFixed(timeInterval: TimeInterval)

Preloads the data necessary to transform between the ICRF and Fixed axes, in either direction, over a given interval. This function returns a promise that, when resolved, indicates that the preload has completed.

Link copied to clipboard
external fun preloadIcrfFixedAsync(timeInterval: TimeInterval): Promise<Void>