com.croftsoft.core.math.axis
Class AxisAngleImp

java.lang.Object
  extended by com.croftsoft.core.math.axis.AxisAngleImp
All Implemented Interfaces:
AxisAngle, AxisAngleMut

public final class AxisAngleImp
extends Object
implements AxisAngleMut

Implementation of interface AxisAngleMut.

Since:
2008-05-09
Version:
$Id: AxisAngleImp.java,v 1.2 2008/05/09 20:39:38 croft Exp $
Author:
David Wallace Croft

Constructor Summary
AxisAngleImp()
           
AxisAngleImp(AxisAngle axisAngle)
           
AxisAngleImp(double degrees, double x, double y, double z)
           
 
Method Summary
 void copy(AxisAngle axisAngle)
           
 double getDegrees()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 double magnitude()
           
 boolean matches(AxisAngle axisAngle)
           
 boolean matches(AxisAngle axisAngle, double tolerance)
           
 void normalize()
           
 void setDegrees(double degrees)
           
 void setX(double x)
           
 void setY(double y)
           
 void setZ(double z)
           
 QuatMut toQuat()
           
 Matrix3x3Mut toRotationMatrix()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AxisAngleImp

public AxisAngleImp(double degrees,
                    double x,
                    double y,
                    double z)

AxisAngleImp

public AxisAngleImp(AxisAngle axisAngle)

AxisAngleImp

public AxisAngleImp()
Method Detail

getDegrees

public double getDegrees()
Specified by:
getDegrees in interface AxisAngle

getX

public double getX()
Specified by:
getX in interface AxisAngle

getY

public double getY()
Specified by:
getY in interface AxisAngle

getZ

public double getZ()
Specified by:
getZ in interface AxisAngle

copy

public void copy(AxisAngle axisAngle)
Specified by:
copy in interface AxisAngleMut

normalize

public void normalize()
Specified by:
normalize in interface AxisAngleMut

setDegrees

public void setDegrees(double degrees)
Specified by:
setDegrees in interface AxisAngleMut

setX

public void setX(double x)
Specified by:
setX in interface AxisAngleMut

setY

public void setY(double y)
Specified by:
setY in interface AxisAngleMut

setZ

public void setZ(double z)
Specified by:
setZ in interface AxisAngleMut

matches

public boolean matches(AxisAngle axisAngle)
Specified by:
matches in interface AxisAngle

matches

public boolean matches(AxisAngle axisAngle,
                       double tolerance)
Specified by:
matches in interface AxisAngle

magnitude

public double magnitude()
Specified by:
magnitude in interface AxisAngle

toQuat

public QuatMut toQuat()
Specified by:
toQuat in interface AxisAngle

toRotationMatrix

public Matrix3x3Mut toRotationMatrix()
Specified by:
toRotationMatrix in interface AxisAngle

toString

public String toString()
Overrides:
toString in class Object

CroftSoft Javadoc

CroftSoft Core Javadoc (2008-09-28 20:58:02)