public class Mat2
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
float |
m00 |
float |
m01 |
float |
m10 |
float |
m11 |
| Constructor and Description |
|---|
Mat2()
Creates a new 2D transformation matrix.
|
Mat2(float radians)
Creates a new 2D transformation matrix with given rotation.
|
Mat2(float a,
float b,
float c,
float d)
Creates a new transfomration matrix
|
| Modifier and Type | Method and Description |
|---|---|
Mat2 |
abs() |
Mat2 |
abs(Mat2 out) |
void |
absi() |
Vec2 |
getAxisX() |
Vec2 |
getAxisX(Vec2 out) |
Vec2 |
getAxisY() |
Vec2 |
getAxisY(Vec2 out) |
Vec2 |
mul(float x,
float y,
Vec2 out) |
Mat2 |
mul(Mat2 x) |
Mat2 |
mul(Mat2 x,
Mat2 out) |
Vec2 |
mul(Vec2 v) |
Vec2 |
mul(Vec2 v,
Vec2 out) |
void |
muli(Mat2 x) |
Vec2 |
muli(Vec2 v) |
void |
set(float radians)
Sets this matrix to a rotation matrix with the given radians.
|
void |
set(float a,
float b,
float c,
float d) |
void |
set(Mat2 m) |
Mat2 |
transpose() |
Mat2 |
transpose(Mat2 out) |
void |
transposei() |
public Mat2()
public Mat2(float radians)
radians - Rotation to set.public Mat2(float a,
float b,
float c,
float d)
a - b - c - d - public void set(float radians)
radians - Rotation in radians.public void set(float a,
float b,
float c,
float d)
public void set(Mat2 m)
public void absi()
public Mat2 abs()
public Vec2 getAxisX()
public Vec2 getAxisY()
public void transposei()
public Mat2 transpose()
public void muli(Mat2 x)