Package org.opensourcephysics.numerics
Interface MatrixTransformation
- All Superinterfaces:
Cloneable
,Transformation
- All Known Implementing Classes:
Matrix2DTransformation
,Matrix3DTransformation
,Quaternion
MatrixTransformation maps coordinates from one coordinate system to another using a matrix.
-
Method Summary
Modifier and TypeMethodDescriptiondouble[]
getFlatMatrix
(double[] mat) Gets the direct homogeneous affine transformation flattened into a 1-d arrray.Methods inherited from interface org.opensourcephysics.numerics.Transformation
clone, direct, inverse
-
Method Details
-
getFlatMatrix
double[] getFlatMatrix(double[] mat) Gets the direct homogeneous affine transformation flattened into a 1-d arrray. If the mat parameter is null a double[16] array is created; otherwise the given array is used.- Parameters:
mat
- double[] optional matrix- Returns:
- double[] the matrix
-