View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Triangle Intersection and Barycentric Coordintes

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

### #1algoraox  Members

Posted 06 November 2012 - 01:40 AM

Hi all,

So the attached image below is about using barycentric coordinates to solve ray-triangle intersection. I was hoping someone could clear up some of the things that were mentioned in the post.

For the most part, I do understand what P', X, and Y are.

He goes on to say that we should construct a matrix A made up of only the vectors X and Y. After this, multiplying the he says to multiple the inverse of A by P'. But A has no inverse since it's not a square matrix, correct?

### #2Inferiarum  Members

Posted 06 November 2012 - 02:15 AM

With a triangle in 2D the matrix is square and the inverse exists in general. You basically do a coordinate transform to a non-orthogonal coordinate system.

With a triangle in 3D he projects the point P' on the plane spanned by X and Y and then expresses the point in the local coordinate system. This is what the generalized inverse does.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.