Vector3f
Link to vector3f
Diese Klasse importieren
Link to diese-klasse-importieren
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.Vector3f;
Methoden
Link to methoden
Name: add
Return Type: void
ZenScript CopyVector3f.add(other as Vector3f) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Vector3f | Beschreibung No Description Provided |
Name: add
Return Type: void
ZenScript CopyVector3f.add(x as float, y as float, z as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter x | Type float | Beschreibung No Description Provided |
Parameter y | Type float | Beschreibung No Description Provided |
Parameter z | Type float | Beschreibung No Description Provided |
Name: clamp
Return Type: void
ZenScript CopyVector3f.clamp(min as float, max as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter min | Type float | Beschreibung No Description Provided |
Parameter max | Type float | Beschreibung No Description Provided |
Name: cross
Return Type: void
ZenScript CopyVector3f.cross(other as Vector3f) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Vector3f | Beschreibung No Description Provided |
Name: dot
Return Type: float
ZenScript CopyVector3f.dot(other as Vector3f) as float
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Vector3f | Beschreibung No Description Provided |
Name: lerp
Return Type: void
ZenScript CopyVector3f.lerp(max as Vector3f, value as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter max | Type Vector3f | Beschreibung No Description Provided |
Parameter value | Type float | Beschreibung No Description Provided |
Name: load
Return Type: void
ZenScript CopyVector3f.load(other as Vector3f) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Vector3f | Beschreibung No Description Provided |
Name: mul
Return Type: void
ZenScript CopyVector3f.mul(scalar as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter scalar | Type float | Beschreibung No Description Provided |
Name: mul
Return Type: void
ZenScript CopyVector3f.mul(x as float, y as float, z as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter x | Type float | Beschreibung No Description Provided |
Parameter y | Type float | Beschreibung No Description Provided |
Parameter z | Type float | Beschreibung No Description Provided |
Name: normalize
Return Type: boolean
ZenScript Copy// Vector3f.normalize() as boolean
myVector3f.normalize();
Name: rotation
Return Type: Quaternion
ZenScript CopyVector3f.rotation(rads as float) as Quaternion
Parameter | Type | Beschreibung |
---|---|---|
Parameter rads | Type float | Beschreibung No Description Provided |
Name: rotationDegrees
Return Type: Quaternion
ZenScript CopyVector3f.rotationDegrees(degrees as float) as Quaternion
Parameter | Type | Beschreibung |
---|---|---|
Parameter degrees | Type float | Beschreibung No Description Provided |
Name: setValues
Return Type: void
ZenScript CopyVector3f.setValues(x as float, y as float, z as float) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter x | Type float | Beschreibung No Description Provided |
Parameter y | Type float | Beschreibung No Description Provided |
Parameter z | Type float | Beschreibung No Description Provided |
Name: sub
Return Type: void
ZenScript CopyVector3f.sub(other as Vector3f) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter other | Type Vector3f | Beschreibung No Description Provided |
Name: transform
Return Type: void
ZenScript CopyVector3f.transform(matrix as Matrix3f) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter matrix | Type Matrix3f | Beschreibung No Description Provided |
Name: transform
Return Type: void
ZenScript CopyVector3f.transform(quaternion as Quaternion) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter quaternion | Type Quaternion | Beschreibung No Description Provided |
Name: x
Return Type: float
ZenScript Copy// Vector3f.x() as float
myVector3f.x();
Name: y
Return Type: float
ZenScript Copy// Vector3f.y() as float
myVector3f.y();
Name: z
Return Type: float
ZenScript Copy// Vector3f.z() as float
myVector3f.z();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name x | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name y | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name z | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |