Hai all,
In my project in VC++, i am need of getting the coordinates of an ellipse.
Please help me ,
With thanks
arun a.c.
Printable View
Hai all,
In my project in VC++, i am need of getting the coordinates of an ellipse.
Please help me ,
With thanks
arun a.c.
sunkingac,
the formula of an ellipse is (x**2/a**2)+(y**2/b**2)=1 where a is semi-major -radius and b semi-minor-radius, so
x=a*sqr(1-y**2/b**2)
but ... what do you need?
Hope it helps
This will give u half the ellipse, u also need to calculate the negative values of x:Quote:
Originally posted by DeepButi
the formula of an ellipse is (x**2/a**2)+(y**2/b**2)=1 where a is semi-major -radius and b semi-minor-radius, so
x=a*sqr(1-y**2/b**2)
x=a*sqr(1-y**2/b**2)
and
x=-a*sqr(1-y**2/b**2)
and ofcourse some limitations:
--> abs(x)<=a
--> abs(y)<=b
Regards,
Theodore