From f23dd35e3f9a1ddd70da467ce51a00a9d6f5e3f0 Mon Sep 17 00:00:00 2001 From: valerio <valerio@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Wed, 14 Apr 2010 17:07:08 +0000 Subject: [PATCH] Added 'geom' in front of functions git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2006 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- website/raw/docs/tut/vecmath.mkdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/raw/docs/tut/vecmath.mkdown b/website/raw/docs/tut/vecmath.mkdown index 112b9bcb3..d4bf338a9 100644 --- a/website/raw/docs/tut/vecmath.mkdown +++ b/website/raw/docs/tut/vecmath.mkdown @@ -25,10 +25,10 @@ Here is another example: # array subscript notation: c=geom.Vec2(a[0],b[1]) # print length of vector a and b - print Length(a), Length(b) + print geom.Length(a), geom.Length(b) # calculate dot (inner) product - print Dot(a,b) + print geom.Dot(a,b) # do some fancy calculation d = a+2*b @@ -44,7 +44,7 @@ Here are examples of both approaches: :::python # the standard python math module defines the pi constant and the acos function import math - angle= math.acos(Normalize(c),Normalize(d))*180.0/math.pi + angle= math.acos(geom.Normalize(c),geom.Normalize(d))*180.0/math.pi # computing the angle using the geom.Angle function angle2=geom.Angle(c,d) -- GitLab