}
// Rotation from up -1,0,0 to up 0,-1,0
@Test
public void testReorientMinusX2MinusY() {
Gml gml = createGml();
gml.environment.up = new Vec3D(-1, 0, 0);
AABB aabb = AABB.fromMinMax(new Vec3D(0.05f, 0.1f, 0.25f), new Vec3D(0.65f, 0.85f, 0.7f));
GmlUtils.reorient(gml, true);
LOGGER.log(Level.FINEST, "testMinusX2MinusY "+gml.getBoundingBox().getMin()+ " / " +gml.getBoundingBox().getMax());
LOGGER.log(Level.FINEST, "Expected :"+aabb.getMin()+ " / "+ aabb.getMax());
// Check min-max bounding box
assertTrue("x=-1 to y=-1", aabb.equalsWithTolerance(gml.getBoundingBox(), 0.0000001f));
assertTrue("up vector", gml.environment.up.equals(new Vec3D(0, -1, 0)));
}