If working with points on a 2d triangle, or a line (defined by two points) on the plane defined by a triangle, then barycentric coordinates are an excellent method of representing the points. In particular, it allows you to find the point where the line crosses the edge of the triangle in a very simple way.

Guide I'm using re: barycentric coordinates: BlackPawn: Points in triangle

Read More...

Guide I'm using re: barycentric coordinates: BlackPawn: Points in triangle

Read More...