maspack.matrix
Enum AxisAlignedRotation

java.lang.Object
  extended by java.lang.Enum<AxisAlignedRotation>
      extended by maspack.matrix.AxisAlignedRotation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AxisAlignedRotation>

public enum AxisAlignedRotation
extends java.lang.Enum<AxisAlignedRotation>

Denotes an axis-aligned rotation i.e., a rotation in which the new axes are aligned (in either direction) with the original axes. The corresponding rotation matrix elements will therefore consist of only 1, 0, and -1.

There are 24 such rotations, each identified by the directions of the new x and y axes expressed with respect to the original axes.


Enum Constant Summary
NX_NY
           
NX_NZ
           
NX_Y
           
NX_Z
           
NY_NX
           
NY_NZ
           
NY_X
           
NY_Z
           
NZ_NX
           
NZ_NY
           
NZ_X
           
NZ_Y
           
X_NY
           
X_NZ
           
X_Y
           
X_Z
           
Y_NX
           
Y_NZ
           
Y_X
           
Y_Z
           
Z_NX
           
Z_NY
           
Z_X
           
Z_Y
           
 
Method Summary
 RotationMatrix3d getMatrix()
           
 void getMatrix(RotationMatrix3d R)
           
static AxisAlignedRotation getNearest(RotationMatrix3d R)
           
static AxisAlignedRotation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AxisAlignedRotation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

X_Y

public static final AxisAlignedRotation X_Y

X_NZ

public static final AxisAlignedRotation X_NZ

X_NY

public static final AxisAlignedRotation X_NY

X_Z

public static final AxisAlignedRotation X_Z

NX_Y

public static final AxisAlignedRotation NX_Y

NX_NZ

public static final AxisAlignedRotation NX_NZ

NX_NY

public static final AxisAlignedRotation NX_NY

NX_Z

public static final AxisAlignedRotation NX_Z

Y_Z

public static final AxisAlignedRotation Y_Z

Y_NX

public static final AxisAlignedRotation Y_NX

Y_NZ

public static final AxisAlignedRotation Y_NZ

Y_X

public static final AxisAlignedRotation Y_X

NY_Z

public static final AxisAlignedRotation NY_Z

NY_NX

public static final AxisAlignedRotation NY_NX

NY_NZ

public static final AxisAlignedRotation NY_NZ

NY_X

public static final AxisAlignedRotation NY_X

Z_X

public static final AxisAlignedRotation Z_X

Z_NY

public static final AxisAlignedRotation Z_NY

Z_NX

public static final AxisAlignedRotation Z_NX

Z_Y

public static final AxisAlignedRotation Z_Y

NZ_X

public static final AxisAlignedRotation NZ_X

NZ_NY

public static final AxisAlignedRotation NZ_NY

NZ_NX

public static final AxisAlignedRotation NZ_NX

NZ_Y

public static final AxisAlignedRotation NZ_Y
Method Detail

values

public static AxisAlignedRotation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AxisAlignedRotation c : AxisAlignedRotation.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AxisAlignedRotation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMatrix

public RotationMatrix3d getMatrix()

getMatrix

public void getMatrix(RotationMatrix3d R)

getNearest

public static AxisAlignedRotation getNearest(RotationMatrix3d R)