Matrix3f
Link to matrix3f
导入类
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 Copyimport crafttweaker.api.util.math.Matrix3f;
使用方式
Link to 使用方式
Name: adjugateAndDet
Return Type: float
ZenScript Copy// Matrix3f.adjugateAndDet() as float
myMatrix3f.adjugateAndDet();
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: mul
ZenScript CopyMatrix3f.mul(scalar as float)
参数 | 类型 |
---|---|
参数 scalar | 类型 float |
Name: setIdentity
ZenScript Copy// Matrix3f.setIdentity()
myMatrix3f.setIdentity();
Name: setValue
ZenScript CopyMatrix3f.setValue(row as int, col as int, value as float)
参数 | 类型 |
---|---|
参数 row | 类型 int |
参数 col | 类型 int |
参数 value | 类型 float |
Name: trace
Return Type: float
ZenScript Copy// Matrix3f.trace() as float
myMatrix3f.trace();
Name: transpose
ZenScript Copy// Matrix3f.transpose()
myMatrix3f.transpose();