Commit 9f40561e authored by iSergio's avatar iSergio
Browse files

Added Transforms.computeIcrfToCentralBodyFixedMatrix to specify the default...

Added Transforms.computeIcrfToCentralBodyFixedMatrix to specify the default ICRF to fixed frame transformation to use internally, including for lighting calculations.
parent 61e094d5
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -70,6 +70,29 @@ public class Transforms {
    @JsMethod
    public static native Matrix3 computeFixedToIcrfMatrix(JulianDate date, Matrix3 result);

    /**
     * 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.
     * @param date The time at which to compute the rotation matrix.
     * @return The rotation matrix, or undefined if the data necessary to do the transformation is not yet loaded.
     */
    @JsMethod
    public static native Matrix3 computeIcrfToCentralBodyFixedMatrix(JulianDate date);

    /**
     * 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.
     * @param date The time at which to compute the rotation matrix.
     * @param result The object onto which to store the result. If this parameter is not specified, a new instance is created and returned.
     * @return The rotation matrix, or undefined if the data necessary to do the transformation is not yet loaded.
     */
    @JsMethod
    public static native Matrix3 computeIcrfToCentralBodyFixedMatrix(JulianDate date, Matrix3 result);

    // TODO: Example

    /**