Hattu to_local() transforms a global position to a position in the local coordinate system of a node, meaning it will be relative to the nodes origin point.
If you have a node at global position 100/200 and transform the global position 150/350 to the local coordinate system of that node you would get a local position of 50/150.