com.robrohan.ruin.math3d
Class Generic3dMatrix

java.lang.Object
  |
  +--com.robrohan.ruin.math3d.Generic3dMatrix

public class Generic3dMatrix
extends java.lang.Object

A generic 3d matrix class that implements rotation about the principal axis, translation, and scaling


Constructor Summary
Generic3dMatrix()
          Creates a new instance of fGeneric3dMatrix
 
Method Summary
 void concatRx(double ax)
          multiplies a rotation about the X-axis i.e.
 void concatRy(double ay)
          multiplies a rotation about the Y-axis i.e.
 void concatRz(double az)
          multiplies a rotation about the Z-axis i.e.
 void concatS(double sx, double sy, double sz)
          multiplies scaling
 void concatT(double x, double y, double z)
          multiplies a transform
 void makeIdentity()
          creates or resets the matrix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generic3dMatrix

public Generic3dMatrix()
Creates a new instance of fGeneric3dMatrix

Method Detail

makeIdentity

public void makeIdentity()
creates or resets the matrix


concatRz

public void concatRz(double az)
multiplies a rotation about the Z-axis i.e. Object.concatRz(Math.PI/2)


concatRy

public void concatRy(double ay)
multiplies a rotation about the Y-axis i.e. Object.concatRy(Math.PI/2)


concatRx

public void concatRx(double ax)
multiplies a rotation about the X-axis i.e. Object.concatRx(Math.PI/2)


concatT

public void concatT(double x,
                    double y,
                    double z)
multiplies a transform


concatS

public void concatS(double sx,
                    double sy,
                    double sz)
multiplies scaling