def distance2(self, to):
        '''Returns the distance between two points squared.

        >>> Vector(10, 10).distance2((5, 10))
        25

        '''
        return (self[0] - to[0]) ** 2 + (self[1] - to[1]) ** 2
dataset/ETHPy150Open kivy/kivy/kivy/vector.py/Vector.distance2/original