|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.numerics.Matrix3DTransformation org.opensourcephysics.drawing3d.utils.transformations.AxisRotation org.opensourcephysics.drawing3d.utils.transformations.CustomAxisRotation
public class CustomAxisRotation
AxisRotation implements a 3D rotation around a given axis.
Constructor Summary | |
---|---|
CustomAxisRotation()
|
Method Summary | |
---|---|
java.lang.Object |
clone()
Provides a copy of this transformation. |
double[] |
getAxis()
Returns a copy of the axis of the rotation |
boolean |
setAngle(double theta)
Sets the angle of the rotation |
boolean |
setAngleAndAxis(double theta,
double[] newAxis)
Sets the axis and angle of the rotation |
boolean |
setAxis(double[] newAxis)
Sets the axis of the rotation |
Methods inherited from class org.opensourcephysics.drawing3d.utils.transformations.AxisRotation |
---|
getAngle, setElement, setOrigin, setOrigin |
Methods inherited from class org.opensourcephysics.numerics.Matrix3DTransformation |
---|
createAlignmentTransformation, direct, direct, getFlatMatrix, getLoader, getOrigin, getTransposedFlatMatrix, inverse, inverse, multiply, multiply, Quaternion, Quaternion, rotation, rotationX, rotationY, rotationZ, setMatrix, setMatrix, toQuaternion |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomAxisRotation()
Method Detail |
---|
public boolean setAngle(double theta)
AxisRotation
setAngle
in class AxisRotation
public boolean setAxis(double[] newAxis)
axis
- public double[] getAxis()
public boolean setAngleAndAxis(double theta, double[] newAxis)
theta
- axis
- public java.lang.Object clone()
clone
in interface Transformation
clone
in class Matrix3DTransformation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |