|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.sip.ch17.Affine3DMatrix
public class Affine3DMatrix
Affine3DMatrix implements 3D affine transformations using a matrix representation.
Constructor Summary | |
---|---|
Affine3DMatrix(double[][] matrix)
Constructs a 3D affine transformation using the given matrix. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Provides a copy of this transformation. |
double[] |
direct(double[] point)
Transforms the given point. |
double[] |
inverse(double[] point)
Transforms the given point using the inverse transformation (if it exists). |
static Affine3DMatrix |
Rotation(double theta,
double[] axis)
Creates an AffineMatrix representing a rotation about the origin by some angle around the given axis. |
static Affine3DMatrix |
Translation(double dx,
double dy,
double dz)
Creates an AffineMatrix representing a translation. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Affine3DMatrix(double[][] matrix)
mat
- double[][]Method Detail |
---|
public static Affine3DMatrix Rotation(double theta, double[] axis)
theta
- doubleaxis
- double[]
public static Affine3DMatrix Translation(double dx, double dy, double dz)
theta
- doubleaxis
- double[]
public java.lang.Object clone()
clone
in interface Transformation
clone
in class java.lang.Object
public double[] direct(double[] point)
direct
in interface Transformation
point
- the coordinates to be transformed
public double[] inverse(double[] point) throws java.lang.UnsupportedOperationException
inverse
in interface Transformation
point
- the coordinates to be transformed
java.lang.UnsupportedOperationException
- If the transformation is
not invertible
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |