[Bf-committers] Re: Re: [Bf-blender-cvs] CVS commit: blender/source/blender/python/api2_2x Mathutils.c

Arne Schmitz arne.schmitz at mmweg.rwth-aachen.de
Mon Oct 10 21:32:52 CEST 2005

Am Montag, 10. Oktober 2005 21:14 schrieb GSR:
> Should not the result already be between that, and if not, then
> something is really wrong? In other words, not clamp but return error.

No, after a dot product, the value will sometimes slightly fall out of the 
[-1, 1] range, due to rounding errors. For performance reasons, you wouldn't 
want to clamp the values ALL the time, but only e.g. if you compute the acos 
of a value. The acos is of course *only* defined over [-1, 1].


[--- PGP key FD05BED7 --- http://www.root42.de/ ---]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://projects.blender.org/pipermail/bf-committers/attachments/20051010/55af209e/attachment.pgp

More information about the Bf-committers mailing list