# Perp dot product and intersection point between 2 vectors

This topic is 2816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Thanks in advance

##### Share on other sites
Any source that talks about the "intersection of vectors" is something to go right to the trash can. You don't intersect vectors with each other.

The standard terms in computer graphics are line segment, ray and line. Line segment is defined by two endpoints. Ray and line are both defined by an endpoint and a direction vector. Ray spans infinitely from its starting point towards one direction, while a line spans infinitely into two directions.

The math for computing intersections between these primitives all boil down to the same function - computing the closest point pairs between two lines, and the math is the same for 2D and for 3D. See e.g. MathGeoLib's Line::ClosestPointLineLine for code and reference.

##### Share on other sites

Any source that talks about the "intersection of vectors" is something to go right to the trash can. You don't intersect vectors with each other.

The standard terms in computer graphics are line segment, ray and line. Line segment is defined by two endpoints. Ray and line are both defined by an endpoint and a direction vector. Ray spans infinitely from its starting point towards one direction, while a line spans infinitely into two directions.

The math for computing intersections between these primitives all boil down to the same function - computing the closest point pairs between two lines, and the math is the same for 2D and for 3D. See e.g. MathGeoLib's Line::ClosestPointLineLine for code and reference.

Thanks for the help . Anyway, this reference you have pointed out seems a different way to accomplish the same that the article I posted. Isn't it?.

• ### Game Developer Survey

We are looking for qualified game developers to participate in a 10-minute online survey. Qualified participants will be offered a \$15 incentive for your time and insights. Click here to start!

• 9
• 11
• 15
• 21
• 26