Forum Moderators: open
From a bit of basic math
An ellipse centered on (0,0)
Major access A
Minor access B
Covers all points (X.Y)
if ( ( (Math.pow(X,2)) / (Math.pow(A,2)) ) + ( (Math.pow(Y,2)) / (Math.pow(B,2)) ) > 1 ) { // we are outside the ellipse } Problem is
What if its centered on (500,500)
and the ellipse is rotated 90 Deg (as in an egg in an eggcup)?