-
- All Implemented Interfaces:
public final class Mat2
-
-
Method Summary
Modifier and Type Method Description final Vec2getRow1()final UnitsetRow1(Vec2 row1)final Vec2getRow2()final UnitsetRow2(Vec2 row2)final Unitset(Double radians)Sets the matrix up to be a rotation matrix that stores the angle specified in the matrix. final Unitset(Mat2 m)Sets current object matrix to be the same as the supplied parameters matrix. final Mat2transpose()final Vec2mul(Vec2 v)final Vec2mul(Vec2 v, Vec2 out)StringtoString()-
-
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
-
-
-
-