Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 04:50, 29 October 2024 by PenguinEncounter (talk | contribs) (Create Vector3 page)
For general information on vectors, see Vector and Vectors and Matrices.

A Vector3 is a vector that contains 3 numbers.

Methods

Method Brief description

Vector/MethodIndex

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

Vector/FieldIndex

x, r, [1] First component.
y, g, [2] Second component.
z, b, [3] Third component.

Operators

Operator Brief description

Vector/OperatorIndex

Methods

Vector/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

Vector/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.

Operators

Vector/Operators