[Gridflow-dev] geometry, cross products, matrix inversions...

Mathieu Bouchard matju at artengine.ca
Mon Nov 21 15:50:21 EST 2011

Le 2011-11-21 à 21:11:00, mescalinum at gmail.com a écrit :

> doesn't [#perspective] classify as a 3-vecop? (but it has one more 
> parameter which is the scale, but you could assume 1)

No, because it also works on N-dimensional points for any N>=2, and 
produces (N-1)-dimensional points.

Special cases of perspective on 2-D, 3-D and 4-D points are possible, but 
keep in mind that vecops always have the same size of output as their size 
of input, so, if you output something that has a constant trailing zero 
and don't want it, you have to remove that part by some means...

C.abs and C.abs- are examples of a vecop that wastes a slot, because their 
second output number is always 0.

| Mathieu BOUCHARD ----- téléphone : +1.514.383.3801 ----- Montréal, QC

More information about the Gridflow-dev mailing list