I need a function (it needn't be in JavaScript) that calculates the distance of a point from the center of an ellipse given:
The distance must be in units.
- The coordinates of the bounding rectangle of the ellipse, and
- The position of a point relative to the top-left corner of the ellipse's bounding rectangle.
The distance must be in units.
Comment