|
-
May 6th, 2004, 06:36 AM
#1
formula to get the coordinates of an ellipse
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.
-
May 6th, 2004, 11:32 AM
#2
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
Did it help? rate it.
The best conversation I had was over forty million years ago ... and that was with a coffee machine.
-
May 6th, 2004, 11:44 AM
#3
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)
This will give u half the ellipse, u also need to calculate the negative values of x:
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|