Skip to content
Snippets Groups Projects
Commit f23dd35e authored by valerio's avatar valerio
Browse files

Added 'geom' in front of functions

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2006 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 3b00fbec
Branches
Tags
No related merge requests found
...@@ -25,10 +25,10 @@ Here is another example: ...@@ -25,10 +25,10 @@ Here is another example:
# array subscript notation: # array subscript notation:
c=geom.Vec2(a[0],b[1]) c=geom.Vec2(a[0],b[1])
# print length of vector a and b # print length of vector a and b
print Length(a), Length(b) print geom.Length(a), geom.Length(b)
# calculate dot (inner) product # calculate dot (inner) product
print Dot(a,b) print geom.Dot(a,b)
# do some fancy calculation # do some fancy calculation
d = a+2*b d = a+2*b
...@@ -44,7 +44,7 @@ Here are examples of both approaches: ...@@ -44,7 +44,7 @@ Here are examples of both approaches:
:::python :::python
# the standard python math module defines the pi constant and the acos function # the standard python math module defines the pi constant and the acos function
import math 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 # computing the angle using the geom.Angle function
angle2=geom.Angle(c,d) angle2=geom.Angle(c,d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment