Determine if a vector intersects an edge segment?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Display Modes
  07 July 2018
Determine if a vector intersects an edge segment?

I'm trying to understand how to check if a vector would intersect with an edge segment (with a tolerance), but I'm just not sure how to pull it off. The Line-line intersection is the closest thing I saw in the calculations sticky, but that wont work since it's for two vectors (lines with no end). Not sure I'm explaining this well, but if so hopefully someone here would be able help?
 
  07 July 2018
Do you mean a Ray-line intersection test? Or ray-ray intersection test?
__________________
http://www.tysonibele.com
 
  4 Weeks Ago
I guess he is about ray segment intersection.
All you need to do is to find if two lines intersect and if they do then you check if sum of distances from segmentPoint1 to intersectionPoint and segmentPoint2 to intersectionPoint is equal to distance from segmentPoint1 to segmentPoint2. Hope it makes sense

Last edited by Serejah : 4 Weeks Ago at 01:18 PM.
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 06:09 AM.


Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.