mathutils.Vector angle_signed method

Hi there.

While the vector.angle method is working good, i need to calculate angles based on their clockwise or anticlockwise status. The problem is that while the documentation says that the usage is exactly the same with the angle one, i keep getting traceback errors.

Has anyone issues with the method as well, or am i making a mistake?

vec1=Vector((1,0,0))
vec2=Vector((1,1,0))

vec1.angle_signed(vec2)

Traceback (most recent call last):
  File "<blender_console>", line 1, in <module>
ValueError: Vector.angle_signed(other), invalid 'other' arg: sequence size is 3, expected 2

http://www.blender.org/documentation/blender_python_api_2_69_release/mathutils.html#mathutils.Vector.angle_signed

the method expects a 2D-Vector


vec1=Vector((1,0)) 
vec2=Vector((1,1))  

vec1.angle_signed(vec2)

#get a 2D-Vector without the z-component from a 3D-Vector
vec1.xy
vec1.to_2d()

dropping the last element should work

to decide wether its clockwise or anticlockwise in 3D the orientation of the vector which is orthogonal to vec1 and vec2 needs to be known

Oh my god thank you so much i am so blind :P:P:P

Btw i can’t express how interested i am in the source of these methods. Do you know where can i find the source code for them ? Should i download the source code and search by myself?

http://git.blender.org/gitweb/gitweb.cgi/blender.git/blob/refs/heads/master:/source/blender/blenlib/intern/math_vector.c