Vector.set(v, [y], [z])
Sets the x
, y
, and z
component of the vector using three separate variables, the data from a Vector, or the values from a float array.
Type: function
Parameter(s):
- v {Number | Array | Vector}:
Either a vector, array or
x
component. - y {Number} Optional:
The
y
component. - z {Number} Optional:
The
z
component.