Replace naive local coordinate calculation with self.to_local method.