org.opensourcephysics.drawing3d.utils.transformations
Class Matrix3DTransformation

java.lang.Object
  extended by org.opensourcephysics.numerics.Matrix3DTransformation
      extended by org.opensourcephysics.drawing3d.utils.transformations.Matrix3DTransformation
All Implemented Interfaces:
java.lang.Cloneable, MatrixTransformation, Transformation

public class Matrix3DTransformation
extends Matrix3DTransformation

XAxisRotation implements a 3D rotation around the X axis.


Constructor Summary
Matrix3DTransformation()
           
 
Method Summary
 java.lang.Object clone()
          Provides a copy of this transformation.
 void setElement(Element element)
          Sets the element the rotation applies to
 boolean setMatrix(double[] newMatrix)
          Sets the matrix array of the rotation
 boolean setMatrix(double[][] newMatrix)
          Sets the double[][] matrix array of the rotation
 double[] setOrigin(double[] origin)
          Sets the origin for this rotation.
 void setOrigin(double ox, double oy, double oz)
          Sets the origin for this rotation.
 
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, toQuaternion
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Matrix3DTransformation

public Matrix3DTransformation()
Method Detail

setElement

public void setElement(Element element)
Sets the element the rotation applies to

Parameters:
element -

setOrigin

public double[] setOrigin(double[] origin)
Description copied from class: Matrix3DTransformation
Sets the origin for this rotation.

Overrides:
setOrigin in class Matrix3DTransformation
Parameters:
origin - double[] the new origin
Returns:
double[]

setOrigin

public void setOrigin(double ox,
                      double oy,
                      double oz)
Description copied from class: Matrix3DTransformation
Sets the origin for this rotation.

Overrides:
setOrigin in class Matrix3DTransformation
Parameters:
ox - double
oy - double
oz - double

setMatrix

public boolean setMatrix(double[][] newMatrix)
Description copied from class: Matrix3DTransformation
Sets the double[][] matrix array of the rotation

Overrides:
setMatrix in class Matrix3DTransformation

setMatrix

public boolean setMatrix(double[] newMatrix)
Description copied from class: Matrix3DTransformation
Sets the matrix array of the rotation

Overrides:
setMatrix in class Matrix3DTransformation

clone

public java.lang.Object clone()
Description copied from class: Matrix3DTransformation
Provides a copy of this transformation.

Specified by:
clone in interface Transformation
Overrides:
clone in class Matrix3DTransformation