com.croftsoft.core.math.axis
Class AxisAngleImp
java.lang.Object
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
AxisAngleImp
public AxisAngleImp(double degrees,
double x,
double y,
double z)
AxisAngleImp
public AxisAngleImp(AxisAngle axisAngle)
AxisAngleImp
public AxisAngleImp()
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 Core Javadoc (2008-09-28 20:58:02)