Jump to content
  • Advertisement
Sign in to follow this  
Eric_89

Givens: An ellipse, a line and...

This topic is 3056 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Givens: An ellipse, a line and a point on it. Question: Find a position for ellipse so it touches the point and doesn’t cross the line. (Preferably pseudo code style solution) Thanks,

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Eric_89
Givens: An ellipse, a line and a point on it.
Question: Find a position for ellipse so it touches the point and doesn’t cross the line.
(Preferably pseudo code style solution)
Thanks,
What problem are you trying to solve exactly? Can you give us some information about the context?

Share this post


Link to post
Share on other sites
Quote:
What problem are you trying to solve exactly? Can you give us some information about the context?


I wrote the simplified version of problem.
The original question is: we have a circle and an ellipse. Find positions of ellipse so it touches the circle but not crossing it. (and no rotations)

So for example: If we have teta an angle of circle. where would be the ellipse?

Share this post


Link to post
Share on other sites
Had you tried using a sheet of paper and a pen to solve the problem before you asked us to give you pseudo code?

Share this post


Link to post
Share on other sites
Quote:
Original post by Eric_89
Quote:
What problem are you trying to solve exactly? Can you give us some information about the context?


I wrote the simplified version of problem.
The original question is: we have a circle and an ellipse. Find positions of ellipse so it touches the circle but not crossing it. (and no rotations)

So for example: If we have teta an angle of circle. where would be the ellipse?
Is this a homework problem? If so, be sure to check the forum FAQ (specifically what it has to say about asking homework questions on the forums).

Share this post


Link to post
Share on other sites
Quote:
Original post by szecs
Had you tried using a sheet of paper and a pen to solve the problem before you asked us to give you pseudo code?


yes.. but I'm a little confused..

Share this post


Link to post
Share on other sites
Quote:
Original post by jyk
Quote:
Original post by Eric_89
Quote:
What problem are you trying to solve exactly? Can you give us some information about the context?


I wrote the simplified version of problem.
The original question is: we have a circle and an ellipse. Find positions of ellipse so it touches the circle but not crossing it. (and no rotations)

So for example: If we have teta an angle of circle. where would be the ellipse?
Is this a homework problem? If so, be sure to check the forum FAQ (specifically what it has to say about asking homework questions on the forums).


no its not homework.. what kind of homework is that??

Share this post


Link to post
Share on other sites
(so if someone writes a clean question.. y think its homework? would y rather I write here a full page of my problems in geometries of my game?)

Share this post


Link to post
Share on other sites
Try to look into the attributes of ellipses (Wiki will help).
But you can use the equations of the shapes: the equations, and the first derivates (tangent) should be equal at that point.

Share this post


Link to post
Share on other sites
Quote:
Original post by szecs
Try to look into the attributes of ellipses (Wiki will help).
But you can use the equations of the shapes: the equations, and the first derivates (tangent) should be equal at that point.


yes.. but how do we know at which point we should get tangent?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!