Skip to main content
gamedev.net
🔒 Locked

question

Started by TheVoid 1 reply 600+ views
Original Post
TheVoid
TheVoid
Look at that please picture [edited by - thevoid on June 3, 2003 12:21:47 PM]
groby
groby
If y is the distance between L and K, then

K-L is a vector describing the direction of the line, going from L to K.

Divide it by y to make it exactly one unit long.

Now follow that direction for exactly x units, starting at K, and you will get to M.

M=K+((K-L)/y)*x

I suggest you get a good book on vectors....

- Robert
TheVoid
TheVoid
thanks!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.