public class Matrix extends Object
| Constructor and Description |
|---|
Matrix() |
| Modifier and Type | Method and Description |
|---|---|
static float[][] |
concatenate(float[][] m1,
float[][] m2) |
static float[][] |
inverse(float[][] input_matrix)
Calculates the inverse of a 3 * 3 matrix return result
|
static float[][] |
multiply(float[][] matrix1,
float[][] matrix2)
multiply two 3 * 3 matrices together & return result
|
static float[][] |
multiplyAny(float[][] m1,
float[][] m2) |
static void |
print(float[][] matrix1)
show matrix (used to debug)
|
static void |
show(float[][] matrix1)
show matrix (used to debug)
|
static void |
show(int[][] matrix1)
show matrix (used to debug)
|
static void |
showBBox(float[] BBox) |
static float[][] |
toMatrix(AffineTransform xform)
please call this function only on device bound transformation not good
for general use cases;
|
static float[] |
transformPoint(float[][] mm,
float x,
float y)
transform a point i.e:(x,y) based on given matrix
|
public static final float[][] multiply(float[][] matrix1,
float[][] matrix2)
public static final float[][] inverse(float[][] input_matrix)
public static final float[][] concatenate(float[][] m1,
float[][] m2)
public static float[][] toMatrix(AffineTransform xform)
xform - public static float[] transformPoint(float[][] mm,
float x,
float y)
mm - x - y - public static final void show(float[][] matrix1)
public static final void print(float[][] matrix1)
public static final void showBBox(float[] BBox)
public static final void show(int[][] matrix1)
public static float[][] multiplyAny(float[][] m1,
float[][] m2)
Copyright © 2017. All rights reserved.