

def point_to_local(self, p):
    'returns an :class:`.euclid.Vector2` converted to local space.\n\n        Arguments:\n            p (Vector2): Vector to convert.\n\n        Returns:\n            Vector2: ``p`` vector converted to local coordinates.\n        '
    v = euclid.Point2(p[0], p[1])
    matrix = self.get_world_inverse()
    return (matrix * v)

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.point_to_local/original