Matrix3f
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import crafttweaker.api.util.math.Matrix3f;
Methods
Matrix3f.add(other as Matrix3f)
Parameter | Type |
---|---|
Parameter other | Type Matrix3f |
Return Type: float
// Matrix3f.adjugateAndDet() as float
myMatrix3f.adjugateAndDet();
Return Type: Matrix3f
// Matrix3f.copy() as Matrix3f
myMatrix3f.copy();
Return Type: float
// Matrix3f.determinant() as float
myMatrix3f.determinant();
Return Type: boolean
// Matrix3f.invert() as boolean
myMatrix3f.invert();
Matrix3f.load(other as Matrix3f)
Parameter | Type |
---|---|
Parameter other | Type Matrix3f |
Matrix3f.mul(other as Matrix3f)
Parameter | Type |
---|---|
Parameter other | Type Matrix3f |
Matrix3f.mul(quaternion as Quaternion)
Parameter | Type |
---|---|
Parameter quaternion | Type Quaternion |
Matrix3f.mul(scalar as float)
Parameter | Type |
---|---|
Parameter scalar | Type float |
// Matrix3f.setIdentity()
myMatrix3f.setIdentity();
Matrix3f.setValue(row as int, col as int, value as float)
Parameter | Type |
---|---|
Parameter row | Type int |
Parameter col | Type int |
Parameter value | Type float |
Matrix3f.sub(other as Matrix3f)
Parameter | Type |
---|---|
Parameter other | Type Matrix3f |
Return Type: float
// Matrix3f.trace() as float
myMatrix3f.trace();
// Matrix3f.transpose()
myMatrix3f.transpose();