com.brackeen.javagamebook.math3D
Class Transform3D

java.lang.Object
  extended bycom.brackeen.javagamebook.math3D.Transform3D
Direct Known Subclasses:
MovingTransform3D

public class Transform3D
extends java.lang.Object

The Transform3D class represents a rotation and translation.


Constructor Summary
Transform3D()
          Creates a new Transform3D with no translation or rotation.
Transform3D(float x, float y, float z)
          Creates a new Transform3D with the specified translation and no rotation.
Transform3D(Transform3D v)
          Creates a new Transform3D
 
Method Summary
 java.lang.Object clone()
           
 float getAngleX()
           
 float getAngleY()
           
 float getAngleZ()
           
 float getCosAngleX()
           
 float getCosAngleY()
           
 float getCosAngleZ()
           
 Vector3D getLocation()
          Gets the location (translation) of this transform.
 float getSinAngleX()
           
 float getSinAngleY()
           
 float getSinAngleZ()
           
 void rotateAngle(float angleX, float angleY, float angleZ)
           
 void rotateAngleX(float angle)
           
 void rotateAngleY(float angle)
           
 void rotateAngleZ(float angle)
           
 void setAngle(float angleX, float angleY, float angleZ)
           
 void setAngleX(float angleX)
           
 void setAngleY(float angleY)
           
 void setAngleZ(float angleZ)
           
 void setTo(Transform3D v)
          Sets this Transform3D to the specified Transform3D.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transform3D

public Transform3D()
Creates a new Transform3D with no translation or rotation.


Transform3D

public Transform3D(float x,
                   float y,
                   float z)
Creates a new Transform3D with the specified translation and no rotation.


Transform3D

public Transform3D(Transform3D v)
Creates a new Transform3D

Method Detail

clone

public java.lang.Object clone()

setTo

public void setTo(Transform3D v)
Sets this Transform3D to the specified Transform3D.


getLocation

public Vector3D getLocation()
Gets the location (translation) of this transform.


getCosAngleX

public float getCosAngleX()

getSinAngleX

public float getSinAngleX()

getCosAngleY

public float getCosAngleY()

getSinAngleY

public float getSinAngleY()

getCosAngleZ

public float getCosAngleZ()

getSinAngleZ

public float getSinAngleZ()

getAngleX

public float getAngleX()

getAngleY

public float getAngleY()

getAngleZ

public float getAngleZ()

setAngleX

public void setAngleX(float angleX)

setAngleY

public void setAngleY(float angleY)

setAngleZ

public void setAngleZ(float angleZ)

setAngle

public void setAngle(float angleX,
                     float angleY,
                     float angleZ)

rotateAngleX

public void rotateAngleX(float angle)

rotateAngleY

public void rotateAngleY(float angle)

rotateAngleZ

public void rotateAngleZ(float angle)

rotateAngle

public void rotateAngle(float angleX,
                        float angleY,
                        float angleZ)