Commit d0917ab6 authored by sumpfralle's avatar sumpfralle

fixed point comparison (typos)


git-svn-id: https://pycam.svn.sourceforge.net/svnroot/pycam/trunk@365 bbaffbd6-741e-11dd-a85d-61de82d9cad9
parent 2a723232
...@@ -41,11 +41,11 @@ class Point: ...@@ -41,11 +41,11 @@ class Point:
Otherwise the result is based on the individual x/y/z comparisons. Otherwise the result is based on the individual x/y/z comparisons.
""" """
if self.__class__ == other.__class__: if self.__class__ == other.__class__:
if (self.x == other.x) and (self.y == other.y) and (self.z == other.y): if (self.x == other.x) and (self.y == other.y) and (self.z == other.z):
return 0 return 0
elif self.x < other.y: elif self.x < other.x:
return -1 return -1
elif self.x > other.y: elif self.x > other.x:
return 1 return 1
elif self.y < other.y: elif self.y < other.y:
return -1 return -1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment