Class Rotation

java.lang.Object
  |
  +--Rotation

public class Rotation
extends java.lang.Object

A class to do conversions between axis-angle and 3x3 matrix rotations.


Field Summary
private  float[][] A
           
private  float[][] AA
           
private  float[][] AT
           
private  float[][] R
           
private  float[][] skew
           
private  boolean synced
           
private  float[][] temp1
           
private  float[][] temp2
           
 
Constructor Summary
Rotation()
          The base constructor just creates all the data structures
Rotation(float[] matv)
          initialize using an array of 9 floats representing a 3x3 matrix.
Rotation(float[][] mat)
          initialize using a 3x3 matrix.
Rotation(java.lang.String axis, float angle)
          Create a Rotation by specifying a rotation about a particular axis
 
Method Summary
 float[][] getAA()
           
 void getAA(float[][] Aout)
           
 float[] getAAVector()
          A version of getAA() suitable for programs that don't want to deal with the 4x1 representation of vectors
 float[][] getR()
           
 void getR(float[][] Rout)
           
 void setAA(float[][] AAin)
          Set the rotation with an Axis-Angle argument (should be a 4x1 matrix)]
 void setR(float[][] Rin)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

AA

private float[][] AA

A

private float[][] A

AT

private float[][] AT

temp1

private float[][] temp1

temp2

private float[][] temp2

skew

private float[][] skew

R

private float[][] R

synced

private boolean synced
Constructor Detail

Rotation

public Rotation()
The base constructor just creates all the data structures

Rotation

public Rotation(java.lang.String axis,
                float angle)
Create a Rotation by specifying a rotation about a particular axis

Rotation

public Rotation(float[][] mat)
initialize using a 3x3 matrix.

Rotation

public Rotation(float[] matv)
initialize using an array of 9 floats representing a 3x3 matrix.
Method Detail

setAA

public void setAA(float[][] AAin)
Set the rotation with an Axis-Angle argument (should be a 4x1 matrix)]

getAA

public float[][] getAA()

getAAVector

public float[] getAAVector()
A version of getAA() suitable for programs that don't want to deal with the 4x1 representation of vectors

getAA

public void getAA(float[][] Aout)

getR

public float[][] getR()

getR

public void getR(float[][] Rout)

setR

public void setR(float[][] Rin)