def dot_product ( self , other ) : return self . x * other . x + self . y * other . y
matrix dot product python
Return the dot product of the given vectors .
def dot_product(self, other):
        """ Return the dot product of the given vectors. """
        return self.x * other.x + self.y * other.y