public enum AxisReferenceFrame extends Enum<AxisReferenceFrame>
Enum Constant and Description |
---|
ABSOLUTE
Defines an absolute reference frame for a rotation sequence.
|
RELATIVE
Defines a relative reference frame for a rotation sequence.
|
Modifier and Type | Method and Description |
---|---|
static AxisReferenceFrame |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AxisReferenceFrame[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AxisReferenceFrame RELATIVE
When using a relative reference frame, each successive axis
is located relative to the "thing" being rotated and not to some
external frame of reference. For example, say that a rotation sequence
is defined around the x
, y
, and z
axes in
that order. The first rotation will occur around the standard x
axis. The second rotation, however, will occur around the y
axis after it has been rotated by the first rotation; we can call this
new axis y'
. Similarly, the third rotation will occur around
z''
, which may or may not match the original z
axis.
A good real-world example of this type of situation is an airplane,
where a pilot makes a sequence of rotations in order, with each rotation
using the airplane's own up/down, left/right, back/forward directions
as the frame of reference.
public static final AxisReferenceFrame ABSOLUTE
In contrast with the relative reference frame, the absolute reference frame remains fixed throughout a rotation sequence, with each rotation axis not affected by the rotations.
public static AxisReferenceFrame[] values()
for (AxisReferenceFrame c : AxisReferenceFrame.values()) System.out.println(c);
public static AxisReferenceFrame valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.