Page MenuHome

documentation error for mathutils.Vector
Closed, ResolvedPublic

Description

The documentation for the python API has an error. Currently it says:

# zero length vector
vec = mathutils.Vector((0.0, 0.0, 1.0))

# unit length vector
vec_a = vec.copy().normalize()


It should say:


# arbitrary length vector
vec = mathutils.Vector((0.0, 0.0, 1.0))

# unit length vector
vec_a = vec.normalized()



--- Operating System, Graphics card ---
Windows Vista, Intel

--- Blender version with error, and version that worked ---
fixed documentation above works with 2.67b.

--- Short description of error ---
The website is wrong.
http://www.blender.org/documentation/blender_python_api_2_67b_release/mathutils.html

--- Steps for others to reproduce the error (preferably based on attached .blend file) ---
paste the code above and test the "type" of the returned variable "vec_a". The type will be None with current documentation. The type will be Vector with the fixed documentation shown above.

Event Timeline

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Jun 23 2013, 9:04 PM