computeMoonFixedToIcrfMatrix
fun computeMoonFixedToIcrfMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3(source)
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.
// Transform a point from the Fixed axes to the ICRF axes.
const now = JulianDate.now();
const pointInFixed = Cartesian3.fromDegrees(0.0, 0.0);
const fixedToIcrf = Transforms.computeMoonFixedToIcrfMatrix(now);
let pointInInertial = new Cartesian3();
if (defined(fixedToIcrf)) {
pointInInertial = Matrix3.multiplyByVector(fixedToIcrf, pointInFixed, pointInInertial);
}
Content copied to clipboard
Return
The rotation matrix.
Parameters
date
The time at which to compute the rotation matrix.
result
The object onto which to store the result. If this parameter is not specified, a new instance is created and returned.