POV-Ray Insert Menu
mady by Christoph Hormann
http://www.imagico.de/

Vector components

top previous next

// extract each component of a vector:

// for 3D vectors:
// #if (MyVector.x > 5) ...
// #if (MyVector.y > 5) ...
// #if (MyVector.z > 5) ...

// in addition for 4D vectors:
// #if (MyVector.t > 5) ...

// for 2D (UV) vectors:
// #if (MyVector.u > 5) ...
// #if (MyVector.v > 5) ...