Vector3f
Importing the class
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.
import crafttweaker.api.util.math.Vector3f;Methods
Return Type: void
Vector3f.add(other as Vector3f) as void| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vector3f | Description No Description Provided |
Return Type: void
Vector3f.add(x as float, y as float, z as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter x | Type float | Description No Description Provided |
Parameter y | Type float | Description No Description Provided |
Parameter z | Type float | Description No Description Provided |
Return Type: void
Vector3f.clamp(min as float, max as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter min | Type float | Description No Description Provided |
Parameter max | Type float | Description No Description Provided |
Return Type: Vector3f
// Vector3f.copy() as Vector3f
myVector3f.copy();Return Type: void
Vector3f.cross(other as Vector3f) as void| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vector3f | Description No Description Provided |
Return Type: float
Vector3f.dot(other as Vector3f) as float| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vector3f | Description No Description Provided |
Return Type: void
Vector3f.lerp(max as Vector3f, value as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter max | Type Vector3f | Description No Description Provided |
Parameter value | Type float | Description No Description Provided |
Return Type: void
Vector3f.load(other as Vector3f) as void| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vector3f | Description No Description Provided |
Return Type: void
Vector3f.mul(scalar as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter scalar | Type float | Description No Description Provided |
Return Type: void
Vector3f.mul(x as float, y as float, z as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter x | Type float | Description No Description Provided |
Parameter y | Type float | Description No Description Provided |
Parameter z | Type float | Description No Description Provided |
Return Type: boolean
// Vector3f.normalize() as boolean
myVector3f.normalize();Return Type: Quaternion
Vector3f.rotation(rads as float) as Quaternion| Parameter | Type | Description |
|---|---|---|
Parameter rads | Type float | Description No Description Provided |
Return Type: Quaternion
Vector3f.rotationDegrees(degrees as float) as Quaternion| Parameter | Type | Description |
|---|---|---|
Parameter degrees | Type float | Description No Description Provided |
Return Type: void
Vector3f.setValues(x as float, y as float, z as float) as void| Parameter | Type | Description |
|---|---|---|
Parameter x | Type float | Description No Description Provided |
Parameter y | Type float | Description No Description Provided |
Parameter z | Type float | Description No Description Provided |
Return Type: void
Vector3f.sub(other as Vector3f) as void| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vector3f | Description No Description Provided |
Return Type: void
Vector3f.transform(matrix as Matrix3f) as void| Parameter | Type | Description |
|---|---|---|
Parameter matrix | Type Matrix3f | Description No Description Provided |
Return Type: void
Vector3f.transform(quaternion as Quaternion) as void| Parameter | Type | Description |
|---|---|---|
Parameter quaternion | Type Quaternion | Description No Description Provided |
Return Type: float
// Vector3f.x() as float
myVector3f.x();Return Type: float
// Vector3f.y() as float
myVector3f.y();Return Type: float
// Vector3f.z() as float
myVector3f.z();Properties
| Name | Type | Has Getter | Has Setter | Description |
|---|---|---|---|---|
Name x | Type float | Has Getter true | Has Setter false | Description No Description Provided |
Name y | Type float | Has Getter true | Has Setter false | Description No Description Provided |
Name z | Type float | Has Getter true | Has Setter false | Description No Description Provided |