projects
/
linpy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Private methods to sort points in a polygon, untested
[linpy.git]
/
pypol
/
coordinates.py
diff --git
a/pypol/coordinates.py
b/pypol/coordinates.py
index
eb8e78c
..
9e46673
100644
(file)
--- a/
pypol/coordinates.py
+++ b/
pypol/coordinates.py
@@
-171,7
+171,7
@@
class Vector(Coordinates):
"""
if not isinstance(other, Vector):
raise TypeError('argument must be a Vector instance')
"""
if not isinstance(other, Vector):
raise TypeError('argument must be a Vector instance')
- cosinus = self.dot(other) / (self.norm()
*
other.norm())
+ cosinus = self.dot(other) / (self.norm()
*
other.norm())
return math.acos(cosinus)
def cross(self, other):
return math.acos(cosinus)
def cross(self, other):