List of usage examples for org.apache.commons.math.geometry Rotation revert
public Rotation revert()
From source file:org.orekit.frames.ITRF2005Frame.java
/** Update the frame to the given date. * <p>The update considers the pole motion from IERS data.</p> * @param date new value of the date//ww w .j a va2s. com * @exception OrekitException if the nutation model data embedded in the * library cannot be read */ protected void updateFrame(final AbsoluteDate date) throws OrekitException { if ((cachedDate == null) || !cachedDate.equals(date)) { // offset from J2000 epoch in julian centuries final double tts = date.durationFrom(AbsoluteDate.J2000_EPOCH); final double ttc = tts / Constants.JULIAN_CENTURY; // pole correction parameters final PoleCorrection pCorr = ((TIRF2000Frame) getParent()).getPoleCorrection(date); final PoleCorrection nCorr = nutationCorrection(date); // elementary rotations due to pole motion in terrestrial frame final Rotation r1 = new Rotation(Vector3D.PLUS_I, -(pCorr.getYp() + nCorr.getYp())); final Rotation r2 = new Rotation(Vector3D.PLUS_J, -(pCorr.getXp() + nCorr.getXp())); final Rotation r3 = new Rotation(Vector3D.PLUS_K, S_PRIME_RATE * ttc); // complete pole motion in terrestrial frame final Rotation wRot = r3.applyTo(r2.applyTo(r1)); // combined effects final Rotation combined = wRot.revert(); // set up the transform from parent TIRF setTransform(new Transform(combined, Vector3D.ZERO)); cachedDate = date; } }