Импорт класса

Link to импорт-класса

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.

ZenScript
Copy
import crafttweaker.api.util.math.Matrix3f;

Name: add

ZenScript
Copy
Matrix3f.add(other as Matrix3f)
ПараметрТип
Параметр
other
Тип
Matrix3f

Name: adjugateAndDet

Return Type: float

ZenScript
Copy
// Matrix3f.adjugateAndDet() as float

myMatrix3f.adjugateAndDet();

Name: copy

Return Type: Matrix3f

ZenScript
Copy
// Matrix3f.copy() as Matrix3f

myMatrix3f.copy();

Name: determinant

Return Type: float

ZenScript
Copy
// Matrix3f.determinant() as float

myMatrix3f.determinant();

Name: invert

Return Type: boolean

ZenScript
Copy
// Matrix3f.invert() as boolean

myMatrix3f.invert();

Name: load

ZenScript
Copy
Matrix3f.load(other as Matrix3f)
ПараметрТип
Параметр
other
Тип
Matrix3f

Name: mul

ZenScript
Copy
Matrix3f.mul(other as Matrix3f)
ПараметрТип
Параметр
other
Тип
Matrix3f

Name: mul

ZenScript
Copy
Matrix3f.mul(quaternion as Quaternion)
ПараметрТип
Параметр
quaternion
Тип
Quaternion

Name: mul

ZenScript
Copy
Matrix3f.mul(scalar as float)
ПараметрТип
Параметр
scalar
Тип
float

Name: setIdentity

ZenScript
Copy
// Matrix3f.setIdentity()

myMatrix3f.setIdentity();

Name: setValue

ZenScript
Copy
Matrix3f.setValue(row as int, col as int, value as float)
ПараметрТип
Параметр
row
Тип
int
Параметр
col
Тип
int
Параметр
value
Тип
float

Name: sub

ZenScript
Copy
Matrix3f.sub(other as Matrix3f)
ПараметрТип
Параметр
other
Тип
Matrix3f

Name: trace

Return Type: float

ZenScript
Copy
// Matrix3f.trace() as float

myMatrix3f.trace();

Name: transpose

ZenScript
Copy
// Matrix3f.transpose()

myMatrix3f.transpose();