RE: [AD] div-by-zero... math3d.c

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Title: RE: [AD] div-by-zero... math3d.c

> against this sort of stupidity, but users that pass  "small
> vectors" to a
> function should be aware of a possible crash.

They should be aware of it, even if the docs don't mention it.
Normalization of a vector does not change its orientation, and
the zero vector has no orientation. Mathematically, it is not
possible to normalize the zero vector. Unless you consider any
unit vector to be a valid normalization of the zero vector.

--
Vincent Penquerc'h



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/