|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.planeth.common.math.MatrixHelper33
Helper for 3x3 Matrixes and the 1x3, 3x1 Vector/Matrix interpretation.
| Method Summary | |
static Matrix |
createFlipXMatrix33()
Creates a FlipMatrix (X-Achse) 3x3 [-1] [0] [0] [0] [1] [0] [0] [0] [1] |
static Matrix |
createFlipYMatrix33()
Creates a FlipMatrix (Y-Achse) 3x3 [1] [0] [0] [0] [-1] [0] [0] [0] [1] |
static Matrix |
createIdentityMatrix33()
Creates an IdentityMatrix 3x3 (E) [1][0][0] [0][1][0] [0][0][1] |
static Matrix |
createMovementMatrix33(double movementX,
double movementY)
Creates a MovementMatrix 3x3 [1] [0] [0] [0] [1] [0] [movX][movY][1] |
static Matrix |
createRotationMatrix33(double theta)
Creates a RotationMatrix 3x3 [cos(th)] [sin(th)][0] [-sin(th)][cos(th)][0] [0] [0] [1] |
static Matrix |
createScaleMatrix33(double scaleFactor)
Creates a ScalingMatrix 3x3 [scale][0] [0] [0] [scale][0] [0] [0] [1] |
static void |
transformVectorArrayWithMatrix33(Vector2D[] vertexes,
Matrix matrix33)
Transforms the passed vector2DArray with the passed matrix33 |
static void |
transformVectorWithMatrix33(Vector2D vector,
Matrix matrix33)
Transforms the passed vector2D with the passed matrix33 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Matrix createIdentityMatrix33()
[1][0][0] [0][1][0] [0][0][1]
public static Matrix createMovementMatrix33(double movementX,
double movementY)
[1] [0] [0] [0] [1] [0] [movX][movY][1]
movementX - movementY -
public static Matrix createRotationMatrix33(double theta)
[cos(th)] [sin(th)][0] [-sin(th)][cos(th)][0] [0] [0] [1]
theta - rotation angle in radians
public static Matrix createScaleMatrix33(double scaleFactor)
[scale][0] [0] [0] [scale][0] [0] [0] [1]
scaleFactor -
public static Matrix createFlipXMatrix33()
[-1] [0] [0] [0] [1] [0] [0] [0] [1]
public static Matrix createFlipYMatrix33()
[1] [0] [0] [0] [-1] [0] [0] [0] [1]
public static void transformVectorWithMatrix33(Vector2D vector,
Matrix matrix33)
vector - the Vector to be transformedmatrix33 - the transform matrix
public static void transformVectorArrayWithMatrix33(Vector2D[] vertexes,
Matrix matrix33)
vertexes - the vertexes to be transformedmatrix33 - the transform matrix
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||