[Bf-python] Error in mathutils docs
Ken Hughes
khughes at pacific.edu
Sat Jul 8 23:24:56 CEST 2006
Joe Eagar wrote:
> Hi. In the cvs epydocs, the Mathutils.Vector page says that the Vector
> methods return a copy of the source vector. After looking at the code
> in vector.c, this is clearly not the case; the functions simply return
> the original vector.
Don't think anyone answered this, and Joseph would be the best to
explain, but IIRC this is true but perhaps misleading. Perhaps it
should say returns a new reference to the object. This was for users
who wanted to concatenate operations, such as
vector.normalize().resize2D()
as opposed to
vector.normalize()
vector.resize2D()
Ken
More information about the Bf-python
mailing list