I need to find out the distance of an object from a zoomed and panned canvas. I can get an object's location using clickedObject.getCenterPoint(), however that returns the object's actual location on the canvas.
In attached image, it's a zoomed and panned canvas. And when I click anywhere on the circle, it should return me (20,20) assuming circle's width/height is 40.