-
- All Implemented Interfaces:
public final class Mat2
-
-
Method Summary
Modifier and Type Method Description final Vec2
getRow1()
final Unit
setRow1(Vec2 row1)
final Vec2
getRow2()
final Unit
setRow2(Vec2 row2)
final Unit
set(Double radians)
Sets the matrix up to be a rotation matrix that stores the angle specified in the matrix. final Unit
set(Mat2 m)
Sets current object matrix to be the same as the supplied parameters matrix. final Mat2
transpose()
final Vec2
mul(Vec2 v)
final Vec2
mul(Vec2 v, Vec2 out)
String
toString()
-
-
Constructor Detail
-
Mat2
Mat2()
Default constructor matrix (0,0),(0,0) by default.
-
Mat2
Mat2(Double radians)
Constructs and sets the matrix up to be a rotation matrix that stores the angle specified in the matrix.- Parameters:
radians
- The desired angle of the rotation matrix
-
-
Method Detail
-
set
final Unit set(Double radians)
Sets the matrix up to be a rotation matrix that stores the angle specified in the matrix.
- Parameters:
radians
- The desired angle of the rotation matrix
-
set
final Unit set(Mat2 m)
Sets current object matrix to be the same as the supplied parameters matrix.
- Parameters:
m
- Matrix to set current object to
-
-
-
-