Jump to content
  • Advertisement
Sign in to follow this  
datahead8888

Quick question on parametric coordinates of triangle...

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

If you intended to correct an error in the post then please contact us.

Recommended Posts

Suppose I have a 2D triangle.  It would have 3 vertices with 2D coordinates - (ua, va), (ub, vb), (uc, vc).

How could these be represented with parametric coordinates?

For example, if it was an equilateral triangle, what would the parametric coordinates be?

 

I've looked around for references but never find anything that can easily be applied to triangles.  Most people post guides on parametric equations and polar coordinates, which is a different topic.

 

Share this post


Link to post
Share on other sites
Advertisement

Don't really understand the question... an equilateral triangle can have any number of points as its vertices, depending on the centre, the length of the sides, and the rotation of the vertices around the centre. One such parameterisation of the points is (a, 0), (a cos(120 degrees), a sin(120 degrees)), (a cos(-120 degrees), a sin (-120 degrees)) for an equilateral triangle centred on the origin with one vertex at (a, 0).

 

Are you looking for barycentric coordinates? http://en.wikipedia.org/wiki/Barycentric_coordinate_system

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!