Example usage for org.apache.commons.math3.geometry.euclidean.threed FieldRotation revert

List of usage examples for org.apache.commons.math3.geometry.euclidean.threed FieldRotation revert

Introduction

In this page you can find the example usage for org.apache.commons.math3.geometry.euclidean.threed FieldRotation revert.

Prototype

public FieldRotation<T> revert() 

Source Link

Document

Revert a rotation.

Usage

From source file:org.orekit.utils.FieldAngularCoordinates.java

/** Estimate FieldRotation<T> rate between two orientations.
 * <p>Estimation is based on a simple fixed rate FieldRotation<T>
 * during the time interval between the two orientations.</p>
 * @param start start orientation//www  .  j a va 2  s.  co  m
 * @param end end orientation
 * @param dt time elapsed between the dates of the two orientations
 * @param <T> the type of the field elements
 * @return FieldRotation<T> rate allowing to go from start to end orientations
 */
public static <T extends RealFieldElement<T>> FieldVector3D<T> estimateRate(final FieldRotation<T> start,
        final FieldRotation<T> end, final double dt) {
    final FieldRotation<T> evolution = start.applyTo(end.revert());
    return new FieldVector3D<T>(evolution.getAngle().divide(dt), evolution.getAxis());
}