Jump to content
  • Advertisement
Sign in to follow this  
datahead8888

Quick question on parametric coordinates of triangle...

This topic is 2184 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!