Quaternion
Link to quaternion
Importare la Classe
Link to importare-la-classe
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;
Metodi
Link to metodi
Name: conj
ZenScript Copy// Quaternion.conj()
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
ZenScript CopyQuaternion.mul(other as Quaternion)
Parametro | Tipo |
---|---|
Parametro other | Tipo Quaternion |
Name: mul
ZenScript CopyQuaternion.mul(value as float)
Parametro | Tipo |
---|---|
Parametro valore | Tipo float |
Name: normalize
ZenScript Copy// Quaternion.normalize()
myQuaternion.normalize();
Name: r
Return Type: float
ZenScript Copy// Quaternion.r() as float
myQuaternion.r();
Name: setValue
ZenScript CopyQuaternion.setValue(i as float, j as float, k as float, r as float)
Parametro | Tipo |
---|---|
Parametro i | Tipo float |
Parametro j | Tipo float |
Parametro k | Tipo float |
Parametro r | Tipo float |
Name: slerp
ZenScript CopyQuaternion.slerp(other as Quaternion, value as float)
Parametro | Tipo |
---|---|
Parametro other | Tipo Quaternion |
Parametro valore | Tipo float |
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();
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome i | Tipo float | Ha Getter sì | Ha Setter no |
Nome j | Tipo float | Ha Getter sì | Ha Setter no |
Nome k | Tipo float | Ha Getter sì | Ha Setter no |
Nome r | Tipo float | Ha Getter sì | Ha Setter no |
Nome xyz | Tipo Vector3f | Ha Getter sì | Ha Setter no |
Nome xyzDegrees | Tipo Vector3f | Ha Getter sì | Ha Setter no |
Nome yxz | Tipo Vector3f | Ha Getter sì | Ha Setter no |
Nome yxzDegrees | Tipo Vector3f | Ha Getter sì | Ha Setter no |