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)
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)
def __gt__(self, other): return assert_unorderable(self, other)