Demonstrating how IsInsidePath() works with TranslateCoordinates() and ScaleCoordinates()
Translation X: 0, Y: 0
Translate X0
Translate Y0
Scale 1.00x
Zoom Level1.00
Shape Star
Select ShapeStar
Outside
Inside
Raw Mouse:X: 0, Y: 0
Transformed:X: 0, Y: 0
Hit Test:OUTSIDE
; Transform mouse to path space:
transX = (mouseX - offsetX) / scale
transY = (mouseY - offsetY) / scale
; IsInsidePath uses transformed coords!
The key concept: When you use TranslateCoordinates() and ScaleCoordinates(),
the path is drawn in the transformed space. But mouse coordinates come in
screen space. You must manually transform the mouse coordinates to match
the path's coordinate system before calling IsInsidePath().