Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 21 July 2001 - 12:46 PM
Posted 21 July 2001 - 12:57 PM
Posted 21 July 2001 - 01:00 PM
I''d rewrite each formula so that a single variable (x or y) was on one side. I will pick y:
Ax + By + C = 0
By = -Ax - C
y = -Ax/B - C/B (y=mx+b format)
Do that for each line, then set the y of one line = to the y of the other line, so you will get something like:
4x + 5 = 5x + 3
Then solve for x:
5 - 3 = 5x - 4x
2 = x
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.