For general information on vectors, see Vector and Vectors and Matrices.
A Vector3 is a vector that contains 3 numbers.
Methods
Method | Brief description |
---|---|
augmented | Convert this vector into a Vector4 by appending a number. |
cross in-place | Calculate the cross product of two vectors. |
crossed | Calculate the cross product of two vectors. |
Fields
Field | Brief description |
---|---|
x, r, [1] |
First component. |
y, g, [2] |
Second component. |
z, b, [3] |
Third component. |
Operators
Operator | Brief description |
---|
Methods
Vector3 methods
augmented
Converts this Vector3 into a Vector4 using the provided number as the fourth component.
Arguments | Return Type |
---|---|
augmented(number d)
|
Vector4 |
cross
Calculates the Cross product between two Vector3s and stores the result in this vector.
Arguments | Return Type |
---|---|
cross(Vector3 other)
|
self Vector3 |
crossed
Calculates the Cross product between two Vector3s and creates a new Vector3 to store the result.
Arguments | Return Type |
---|---|
crossed(Vector3 other)
|
new Vector3 |
Fields
Vector4 fields
x, r, 1
Read/write number. The first component of the vector.
y, g, 2
Read/write number. The second component of the vector.
z, b, 3
Read/write number. The third component of the vector.