Jump to content
  • Advertisement
Sign in to follow this  
Bong Chua

Three Lines

This topic is 4335 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

I have three lines which i want to plot in one graph. Given are the following; Line 1. Pivot point at (0,0) and endpoint at (3,8). Line 2. Pivot point at (9,4) with lenght of 10. Line 3. Pivot point at (-10,3) with length of 9. Required; End points at Line 2 and 3. I want to calculate the end points at Line 2 and Line 3. Any advise I would greatly appreciate. Thank you in advance.

Share this post


Link to post
Share on other sites
Advertisement
Endpoints for the lines which would satisfy the provided constraints (pivot point and length) are:

Line 2. (19,4)
Line 3. (-1,3)

There are infinitely many other solutions, the simplest here is to add the length to the x-coordinate (that is, consider the line to be horizontal).

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!