[Bf-committers] Re: [Bf-blender-cvs] CVS
commit: blender/source/blender/python/api2_2x Mathutils.c
khughes at pacific.edu
Mon Oct 10 18:38:09 CEST 2005
Greg MacDonald wrote:
> Hi Ken,
> Probably not.
> X*Y = |X||Y| cos(theta)
> The magnitude of either of the two vectors, |X||Y|, can be greater than
> one. If X and Y are normalized you'll find the dot product will be in
> that range.
> On 10/10/05, *Ken Hughes* <khughes at pacific.edu
> <mailto:khughes at pacific.edu>> wrote:
> Joseph Gilbert wrote:
> > ascotan (Joseph Gilbert) 2005/10/10 17:29:00 CEST
> > Modified files:
> > blender/source/blender/python/api2_2x Mathutils.c
> Shouldn't the dot product be clamped (-1.0,1.0)?
But then the angle between the two vectors has to be in the range or
0-90, which isn't right.
from Blender.Mathutils import *
v1 = Vector(-1,1,0)
v2 = Vector (1,0,0)
prints "90.0" when it should be 135.0
More information about the Bf-committers