Quaternion
Link to quaternion
Импорт класса
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.Quaternion;
Методы
Link to методы
Name: conj
Return Type: void
ZenScript Copy// Quaternion.conj() as void
myQuaternion.conj();
Name: copy
Return Type: Quaternion
ZenScript Copy// Quaternion.copy() as Quaternion
myQuaternion.copy();
Name: i
Return Type: float
ZenScript Copy// Quaternion.i() as float
myQuaternion.i();
Name: j
Return Type: float
ZenScript Copy// Quaternion.j() as float
myQuaternion.j();
Name: k
Return Type: float
ZenScript Copy// Quaternion.k() as float
myQuaternion.k();
Name: mul
Return Type: void
ZenScript CopyQuaternion.mul(other as Quaternion) as void
Параметр | Тип | Описание |
---|---|---|
Параметр other | Тип Quaternion | Описание No Description Provided |
Name: mul
Return Type: void
ZenScript CopyQuaternion.mul(value as float) as void
Параметр | Тип | Описание |
---|---|---|
Параметр value | Тип float | Описание No Description Provided |
Name: normalize
Return Type: void
ZenScript Copy// Quaternion.normalize() as void
myQuaternion.normalize();
Name: r
Return Type: float
ZenScript Copy// Quaternion.r() as float
myQuaternion.r();
Name: setValue
Return Type: void
ZenScript CopyQuaternion.setValue(i as float, j as float, k as float, r as float) as void
Параметр | Тип | Описание |
---|---|---|
Параметр i | Тип float | Описание No Description Provided |
Параметр j | Тип float | Описание No Description Provided |
Параметр k | Тип float | Описание No Description Provided |
Параметр r | Тип float | Описание No Description Provided |
Name: slerp
Return Type: void
ZenScript CopyQuaternion.slerp(other as Quaternion, value as float) as void
Параметр | Тип | Описание |
---|---|---|
Параметр other | Тип Quaternion | Описание No Description Provided |
Параметр value | Тип float | Описание No Description Provided |
Name: toXYZ
Return Type: Vector3f
ZenScript Copy// Quaternion.toXYZ() as Vector3f
myQuaternion.toXYZ();
Name: toXYZDegrees
Return Type: Vector3f
ZenScript Copy// Quaternion.toXYZDegrees() as Vector3f
myQuaternion.toXYZDegrees();
Name: toYXZ
Return Type: Vector3f
ZenScript Copy// Quaternion.toYXZ() as Vector3f
myQuaternion.toYXZ();
Name: toYXZDegrees
Return Type: Vector3f
ZenScript Copy// Quaternion.toYXZDegrees() as Vector3f
myQuaternion.toYXZDegrees();
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter | Описание |
---|---|---|---|---|
Название i | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название j | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название k | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название r | Тип float | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название xyz | Тип Vector3f | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название xyzDegrees | Тип Vector3f | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название yxz | Тип Vector3f | Имеет Getter true | Имеет Setter false | Описание No Description Provided |
Название yxzDegrees | Тип Vector3f | Имеет Getter true | Имеет Setter false | Описание No Description Provided |