Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / vector intersection

Author
Message
Doom Weaver II
20
Years of Service
User Offline
Joined: 11th Sep 2004
Location:
Posted: 10th Mar 2005 18:40
I have two vectors.
One is defined by a point (x), a direction and a length.
The other is defined by two points.
How can I find out if they intersect, and if they do the angle that point of collision is at from (x).
Thanks in advanced.
Van B
Moderator
22
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 10th Mar 2005 22:50
underwaredesign.com might be able to help - if you can convert your own data into 2 sets of 2D lines you could use a line intersect function then take the intersection point and work out the angle from that and the points of each line.


Van-B


It's c**p being the only coder in the village.
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 11th Mar 2005 08:09

Attachments

Login to view attachments

Login to post a reply

Server time is: 2025-06-07 09:43:06
Your offset time is: 2025-06-07 09:43:06