Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Main:Vector/Methods

Template page
Revision as of 23:21, 27 October 2024 by PenguinEncounter (talk | contribs)

Math operations

Mathematical operations that apply to all vectors, such as computing their length

length


Computes the length of a vector.

Arguments Return Type
length() number

lengthSquared


Computes the length of a vector, squared. Due to the nature of the length calculation, this is a little bit faster than length.

Arguments Return Type
lengthSquared() number

dot


Computes the Dot product between two vectors. The argument must be the same type as the target vector.

Arguments Return Type
dot(Vector other) number