GPRotation

De Wiki
Aller à : navigation, rechercher

How to call it

For using the GPRotation class, the developer has only to create such an object as is:

rotation = new GPRotation ("Label");

We also may initialize the widget with predefined values:

CustomRotation rot = new CustomRotation(RotationOrder.ZYX, FastMath.PI, 0., 0.);
rotation = new GPRotation ("Label", rot);

Display

We will get:

GPRotation.png

As for the GPOrbit widget, it is possible to do conversions (or deactivate them by clicking on the corresponding checkbox) using the same “pivot” notion.

How to use it

To get a GENOPUS CustomRotation object, we will just have to call for the getPatriusObject() method as below:

CustomRotation rot = rotation.getPatriusObject();

How it is stored

Here is the XML format:

  <Rotation name="Label">
    <String name="rotationOrder">XZX Euler angles</String>
    <Real name="psi" unit="deg">0.0E0</Real>
    <Real name="theta" unit="deg">1.8E2</Real>
    <Real name="phi" unit="deg">0.0E0</Real>
  </Rotation>