graphics - Calculating the coordinates of the third point of a triangle -


ok, know sounds should asked on math.stackoverflow.com, embarrassingly simple maths i've forgotten high-school, rather advanced post-graduate stuff!

i'm doing graphics programming, , have triangle. incidentally, 2 of triangle's sides equal, i'm not sure if that's relevant. have coordinates of 2 of corners (vertices), not third (these coordinates pixels on screen, in case that's relevant). know lengths of 3 sides.

how determine coordinates of unknown vertex?

for oblique triangles: c^2 = a^2 + b^2 - 2ab * cos(c)

where a, b, c lengths of sides (regardless of length) , a, b, c angles opposite side same letter.

use above figure out angle 1 of endpoints know, use angle, position of vertex, , angle between adjacent sides determine unknown vertex is.

and complexity of problem doesn't determine site should go on, subject matter. should move math.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -