computeTemeToPseudoFixedMatrix

fun computeTemeToPseudoFixedMatrix(date: JulianDate, result: Matrix3? = definedExternally): Matrix3(source)

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.

//Set the view to the inertial frame.
scene.postUpdate.addEventListener(function(scene, time) {
const now = JulianDate.now();
const offset = Matrix4.multiplyByPoint(camera.transform, camera.position, new Cartesian3());
const transform = Matrix4.fromRotationTranslation(Transforms.computeTemeToPseudoFixedMatrix(now));
const inverseTransform = Matrix4.inverseTransformation(transform, new Matrix4());
Matrix4.multiplyByPoint(inverseTransform, offset, offset);
camera.lookAtTransform(transform, offset);
});

Return

The modified result parameter or a new Matrix3 instance if none was provided.

Parameters

date

The time at which to compute the rotation matrix.

result

The object onto which to store the result.

See also