Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/python/doc/examples/mathutils.Vector.py')
-rw-r--r--source/blender/python/doc/examples/mathutils.Vector.py8
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