VY

Extract the second single-dimensional element from a vector
See also: VX VZ VW

Description


Like its sibling classes VX, VZ, VW, access a particular single-dimensional element of the provided vector, in this case the second element, commonly called y in computer graphics parlance.

Supported Rates: frame, shape, pixel

Class Methods


VY.fr(vec)

VY.sr(vec)

VY.pr(vec)

Make a VY VGen at requested rate.

Arguments

vec

The vector to extract the second element from.

Returns:

The second element in the vector.

dimensions

input

output

4

1

3

1

2

1

Examples


var v = VVec4.fr(1, 2, 3, 4);
var y = VY.fr(v); // y: 2