More actions
Redirected page to Vectors and Matrices Tag: New redirect |
Create Vector4 page Tags: Removed redirect 2017 source edit |
||
Line 1: | Line 1: | ||
{{Hatnote|For general information on vectors, see [[Vector]] and [[Vectors and Matrices]].}} | |||
A '''Vector4''' is a [[vector]] that contains 4 numbers. | |||
== Methods == | |||
{| class="wikitable" | |||
! Method !! Brief description | |||
{{:Vector/MethodIndex|T=Vector4|M=Matrix4|Size=4}} | |||
|} | |||
== Fields == | |||
{| class="wikitable" | |||
! Field !! Brief description | |||
{{:Vector/FieldIndex}} | |||
|- | |||
| [[#field_x|x]], [[#field_r|r]], <code>[1]</code> || First component. | |||
|- | |||
| [[#field_y|y]], [[#field_g|g]], <code>[2]</code> || Second component. | |||
|- | |||
| [[#field_z|z]], [[#field_b|b]], <code>[3]</code> || Third component. | |||
|- | |||
| [[#field_w|w]], [[#field_a|a]], <code>[4]</code> || Fourth component. | |||
|} | |||
== Operators == | |||
{| class="wikitable" | |||
! Operator !! Brief description | |||
{{:Vector/OperatorIndex|T=Vector4|M=Matrix4|Size=4}} | |||
|} | |||
== Methods == | |||
{{:Vector/Methods|T=Vector4|M=Matrix4|Size=4}} | |||
== Fields == | |||
{{:Vector/Fields|T=Vector4|M=Matrix4|Size=4}} | |||
=== Vector4 fields === | |||
==== x, r, 1 <span id="field_x"></span><span id="field_r"></span> ==== | |||
---- | |||
Read/write {{type|number}}. The first component of the vector. | |||
==== y, g, 2 <span id="field_y"></span><span id="field_g"></span> ==== | |||
---- | |||
Read/write {{type|number}}. The second component of the vector. | |||
==== z, b, 3 <span id="field_z"></span><span id="field_b"></span> ==== | |||
---- | |||
Read/write {{type|number}}. The third component of the vector. | |||
==== w, a, 4 <span id="field_w"></span><span id="field_a"></span> ==== | |||
---- | |||
Read/write {{type|number}}. The fourth component of the vector. | |||
== Operators == | |||
{{:Vector/Operators|T=Vector4|M=Matrix4|Size=4}} |
Revision as of 04:41, 29 October 2024
For general information on vectors, see Vector and Vectors and Matrices.
A Vector4 is a vector that contains 4 numbers.
Methods
Method | Brief description |
---|
Fields
Field | Brief description |
---|---|
x, r, [1] |
First component. |
y, g, [2] |
Second component. |
z, b, [3] |
Third component. |
w, a, [4] |
Fourth component. |
Operators
Operator | Brief description |
---|
Methods
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.
w, a, 4
Read/write number. The fourth component of the vector.