use of org.hipparchus.util.Decimal64Field in project Orekit by CS-SI.
the class FieldAngularCoordinatesTest method testInverseCrossProducts.
@Test
public void testInverseCrossProducts() throws OrekitException {
Decimal64Field field = Decimal64Field.getInstance();
checkInverse(FieldVector3D.getPlusK(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusJ(field));
checkInverse(FieldVector3D.getZero(field), FieldVector3D.getZero(field), FieldVector3D.getZero(field));
checkInverse(FieldVector3D.getZero(field), FieldVector3D.getZero(field), FieldVector3D.getPlusJ(field));
checkInverse(FieldVector3D.getPlusK(field), FieldVector3D.getPlusK(field), FieldVector3D.getPlusJ(field));
checkInverse(FieldVector3D.getZero(field), FieldVector3D.getPlusK(field), FieldVector3D.getZero(field));
checkInverse(FieldVector3D.getPlusK(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusK(field));
checkInverse(FieldVector3D.getPlusK(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusI(field));
checkInverse(FieldVector3D.getPlusK(field), FieldVector3D.getPlusI(field), new FieldVector3D<Decimal64>(field, new Vector3D(1, 0, -1)).normalize());
checkInverse(FieldVector3D.getZero(field), FieldVector3D.getPlusI(field), FieldVector3D.getZero(field), FieldVector3D.getPlusJ(field), FieldVector3D.getZero(field));
}
use of org.hipparchus.util.Decimal64Field in project Orekit by CS-SI.
the class FieldAngularCoordinatesTest method testInverseCrossProductsFailures.
@Test
public void testInverseCrossProductsFailures() {
Decimal64Field field = Decimal64Field.getInstance();
checkInverseFailure(FieldVector3D.getPlusK(field), FieldVector3D.getZero(field), FieldVector3D.getPlusJ(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusK(field));
checkInverseFailure(FieldVector3D.getPlusK(field), FieldVector3D.getZero(field), FieldVector3D.getZero(field), FieldVector3D.getZero(field), FieldVector3D.getPlusK(field));
checkInverseFailure(FieldVector3D.getPlusI(field), FieldVector3D.getPlusI(field), FieldVector3D.getZero(field), FieldVector3D.getMinusI(field), FieldVector3D.getPlusK(field));
checkInverseFailure(FieldVector3D.getPlusI(field), FieldVector3D.getPlusI(field), FieldVector3D.getZero(field), FieldVector3D.getPlusJ(field), FieldVector3D.getPlusJ(field));
checkInverseFailure(FieldVector3D.getPlusI(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusJ(field), FieldVector3D.getPlusJ(field), FieldVector3D.getZero(field));
checkInverseFailure(FieldVector3D.getPlusI(field), FieldVector3D.getPlusI(field), FieldVector3D.getPlusJ(field), FieldVector3D.getZero(field), FieldVector3D.getPlusJ(field));
}
Aggregations