VW
Extract the fourth single-dimensional element from a vector
See also: VX VY VZ
Description
Like its sibling classes VX, VY, VZ, access a particular single-dimensional element of the provided vector, in this case the fourth element, commonly called w
in computer graphics parlance.
Supported Rates: frame, shape, pixel
Class Methods
VW.fr(vec)
VW.sr(vec)
VW.pr(vec)
Make a VW VGen at requested rate.
Arguments
vec
The vector to extract the fourth element from.
Returns:
The fourth element in the vector.
dimensions
input |
output |
4 |
1 |
Examples
var v = VVec4.fr(1, 2, 3, 4);
var w = VW.fr(v); // w: 4
Last modified July 28, 2020: Update for a 0.0.7 Scintillator release (#5) (0177d81)