|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object triptracker.client.map.core.SimpleMatrixOps
public class SimpleMatrixOps
Field Summary | |
---|---|
static double[][] |
flip3x3
Flip matrix. |
static double[][] |
identity3x3
3x3 identity matrix. |
static double[][] |
mirror3x3
Mirror matrix. |
static double[][] |
rotate180d3x3
180 degrees rotation matrix. |
static double[][] |
rotate270d3x3
270 degrees (anti-clockwise?) rotation matrix |
static double[][][] |
rotate3x3
All rotation matrices. |
static double[][] |
rotate90d3x3
90 degrees (anti-clockwise?) rotation matrix. |
static double[][][] |
scale3x3
Both scaling matrices. |
static double[][] |
scalex3x3
X-axis scaling matrix. |
static double[][] |
scaley3x3
Y-axis scaling matrix. |
static double[][][] |
translate3x3
Both translation matrices. |
static double[][] |
translatex3x3
X-axis translation matrix. |
static double[][] |
translatey3x3
Y-axis translation matrix. |
Constructor Summary | |
---|---|
SimpleMatrixOps()
|
Method Summary | |
---|---|
static double[][] |
add(double[][]... matrices)
Perform a matrix addition operation on an abitrary number of matrices. |
static Matrix2D<? extends Number> |
add(Matrix2D<? extends Number>... matrices)
|
static boolean[][] |
expandToSquare(boolean[][] layout)
Expand a matrix until it becomes square. |
static Matrix2D<Number> |
expandToSquares(Matrix2D<Number> mat,
Number defaultValue)
|
static boolean[][] |
minimize(boolean[][] layout)
Minimize the matrix by removing rows and columns from either of the four sides where all the elements are false. |
static double[][] |
multiply(double[][] mat1,
double[][] mat2)
Perform a matrix multiplication operation. |
static double[][] |
multiply(double factor,
double[][] matrix)
Multiply a matrix by a factor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[][] identity3x3
public static final double[][] rotate90d3x3
public static final double[][] rotate180d3x3
public static final double[][] rotate270d3x3
public static final double[][] scalex3x3
public static final double[][] scaley3x3
public static final double[][] translatex3x3
public static final double[][] translatey3x3
public static final double[][] flip3x3
public static final double[][] mirror3x3
public static final double[][][] rotate3x3
public static final double[][][] scale3x3
public static final double[][][] translate3x3
Constructor Detail |
---|
public SimpleMatrixOps()
Method Detail |
---|
public static double[][] multiply(double[][] mat1, double[][] mat2)
mat1
- the first matrixmat2
- the second matrix
IllegalArgumentException
- if not all matrices are the same sizepublic static double[][] multiply(double factor, double[][] matrix)
factor
- matrix
-
public static double[][] add(double[][]... matrices)
matrices
- matrices to perform the addition operation on
IllegalArgumentException
- if matrix dimensions are incompatiblepublic static Matrix2D<? extends Number> add(Matrix2D<? extends Number>... matrices)
public static boolean[][] expandToSquare(boolean[][] layout)
layout
- matrix
public static Matrix2D<Number> expandToSquares(Matrix2D<Number> mat, Number defaultValue)
public static boolean[][] minimize(boolean[][] layout)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |