Simstim

VEX Dictionary / swizzle

swizzle

Rearranges a vector's components into a new order specified by index arguments.

group: utilityvector

Available in every context

Usage

vector2 swizzle(vector2 v; int i0, int i1)
vector swizzle(vector v; int i0, int i1, int i2)
vector4 swizzle(vector4 v; int i0, int i1, int i2, int i3)

Examples

No worked examples yet.

Signatures (from vcc -X)

Related

Full SideFX documentation ↗