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.

script.zs
import crafttweaker.api.util.math.Matrix3f;

Methods

Return Type: void

script.zs
Matrix3f.add(other as Matrix3f) as void
ParameterTypeDescription
Parameter
other
Type
Matrix3f
Description
No Description Provided

Return Type: float

script.zs
// Matrix3f.adjugateAndDet() as float
myMatrix3f.adjugateAndDet();

Return Type: Matrix3f

script.zs
// Matrix3f.copy() as Matrix3f
myMatrix3f.copy();

Return Type: float

script.zs
// Matrix3f.determinant() as float
myMatrix3f.determinant();

Return Type: boolean

script.zs
// Matrix3f.invert() as boolean
myMatrix3f.invert();

Return Type: void

script.zs
Matrix3f.load(other as Matrix3f) as void
ParameterTypeDescription
Parameter
other
Type
Matrix3f
Description
No Description Provided

Return Type: void

script.zs
Matrix3f.mul(other as Matrix3f) as void
ParameterTypeDescription
Parameter
other
Type
Matrix3f
Description
No Description Provided

Return Type: void

script.zs
Matrix3f.mul(quaternion as Quaternion) as void
ParameterTypeDescription
Parameter
quaternion
Type
Quaternion
Description
No Description Provided

Return Type: void

script.zs
Matrix3f.mul(scalar as float) as void
ParameterTypeDescription
Parameter
scalar
Type
float
Description
No Description Provided

Return Type: void

script.zs
// Matrix3f.setIdentity() as void
myMatrix3f.setIdentity();

Return Type: void

script.zs
Matrix3f.setValue(row as int, col as int, value as float) as void
ParameterTypeDescription
Parameter
row
Type
int
Description
No Description Provided
Parameter
col
Type
int
Description
No Description Provided
Parameter
value
Type
float
Description
No Description Provided

Return Type: void

script.zs
Matrix3f.sub(other as Matrix3f) as void
ParameterTypeDescription
Parameter
other
Type
Matrix3f
Description
No Description Provided

Return Type: float

script.zs
// Matrix3f.trace() as float
myMatrix3f.trace();

Return Type: void

script.zs
// Matrix3f.transpose() as void
myMatrix3f.transpose();