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

Vectors and Matrices: Difference between revisions

From FiguraMC
No edit summary
PenguinEncounter (talk | contribs)
m Fix {{distinguish}}
Tag: 2017 source edit
Line 1: Line 1:
{{Stub}}
{{Stub}}
{{#invoke:Distinguish|hatnote|Vectors (Global)|Matrices (Global)}}
{{Distinguish|Vectors (Global)|Matrices (Global)}}
Vectors and matrices at their core are a set of numbers that represent something (e.g. a Vector3 could represent a position in the world)
Vectors and matrices at their core are a set of numbers that represent something (e.g. a Vector3 could represent a position in the world)



Revision as of 02:40, 29 September 2024

This page is a stub. You can help this wiki by expanding it
Not to be confused with Vectors (Global) or Matrices (Global).

Vectors and matrices at their core are a set of numbers that represent something (e.g. a Vector3 could represent a position in the world)

Vectors

Many functions that take in a vector will also take in the same amount of numbers and internally convert it into a Vector.

Vectors come in 3 types: Vector2, Vector3, and Vector4. You can create a vector by using the global method vec as shown:

  • vec(x number, y number, z number | nil, w number | nil)

This method will return a vector based on how many arguments you input.

Matrices

Matrices are a set of vectors, which are normally used to change where models are, how they look, etc.

Documentation
Globals
APIs (Types)
Visuals (Types)
Other Types
Enums