# Determine if a vector intersects an edge segment?

 07 July 2018 PolyHertz Scholar Greg Gardner USA 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? share quote
 07 July 2018 ivanisavich Some kind of robot   Tyson Ibele Animator MAKE LLC. Toronto, Canada Do you mean a Ray-line intersection test? Or ray-ray intersection test? __________________ http://www.tysonibele.com share quote
 4 Weeks Ago Serejah Expert portfolio Panteleev Sergey Russia 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. share quote

 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 vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.