예제 #1
0
 def __le__(self, other):
     """Compare vector length, shorter vectors are "less than"
     longer vectors.
     """
     try:
         return self.length2 <= other.length2
     except AttributeError:
         return assert_unorderable(self, other)
예제 #2
0
 def __ge__(self, other):
     """Compare vector length, longer vectors are "greater than"
     shorter vectors.
     """
     try:
         return self.length2 >= other.length2
     except AttributeError:
         return assert_unorderable(self, other)
예제 #3
0
 def __le__(self, other):
     """Compare vector length, shorter vectors are "less than"
     longer vectors.
     """
     try:
         return self.length2 <= other.length2
     except AttributeError:
         return assert_unorderable(self, other)
예제 #4
0
 def __ge__(self, other):
     """Compare vector length, longer vectors are "greater than"
     shorter vectors.
     """
     try:
         return self.length2 >= other.length2
     except AttributeError:
         return assert_unorderable(self, other)
예제 #5
0
파일: transform.py 프로젝트: msarch/py
 def __gt__(self, other):
     return assert_unorderable(self, other)
예제 #6
0
파일: transform.py 프로젝트: rbaehr/bitcamp
 def __gt__(self, other):
     return assert_unorderable(self, other)