diff options
Diffstat (limited to 'src/python/cy2geom_example.py')
-rw-r--r-- | src/python/cy2geom_example.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/python/cy2geom_example.py b/src/python/cy2geom_example.py new file mode 100644 index 0000000..aca7dca --- /dev/null +++ b/src/python/cy2geom_example.py @@ -0,0 +1,10 @@ +#!/usr/bin/python + +import cy2geom +from cy2geom import * + +a = Point(1,2) +b = Point(31,2) +print a, b +print Point.dot(a,b) +print Point.unit_vector(a) |