diff options
Diffstat (limited to 'source/blender/python/doc/examples/mathutils.Vector.py')
-rw-r--r-- | source/blender/python/doc/examples/mathutils.Vector.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/doc/examples/mathutils.Vector.py b/source/blender/python/doc/examples/mathutils.Vector.py index 143ad234416..fb00e8aead6 100644 --- a/source/blender/python/doc/examples/mathutils.Vector.py +++ b/source/blender/python/doc/examples/mathutils.Vector.py @@ -1,15 +1,15 @@ import mathutils # zero length vector -vec = mathutils.Vector(0, 0, 1) +vec = mathutils.Vector((0, 0, 1)) # unit length vector vec_a = vec.copy().normalize() -vec_b = mathutils.Vector(0, 1, 2) +vec_b = mathutils.Vector((0, 1, 2)) -vec2d = mathutils.Vector(1, 2) -vec3d = mathutils.Vector([1, 0, 0]) +vec2d = mathutils.Vector((1, 2)) +vec3d = mathutils.Vector((1, 0, 0)) vec4d = vec_a.copy().resize4D() # other mathutuls types |