hey thanks people.... some interesting solutions; I intend to document the final code that I use, and I''ll include your ideas (I''d never thought of dividing into 3 triangles)...
I finally solved my problem using some sort of barycentric coordinate system... and it seems to work pretty welll.
Jack;
How to check if a point is within a triangle....
<hr align="left" width="25%" />
Jack Hoxley <small>[</small><small> Forum FAQ | Revised FAQ | MVP Profile | Developer Journal ]</small>
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement