VZ

Extract the third single-dimensional element from a vector
See also: VX VY VW

Description


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

Supported Rates: frame, shape, pixel

Class Methods


VZ.fr(vec)

VZ.sr(vec)

VZ.pr(vec)

Make a VZ VGen at requested rate.

Arguments

vec

The vector to extract the third element from.

Returns:

The third element in the vector.

dimensions

input

output

4

1

3

1

Examples


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