Hi all,
Does anyone know of a simple triangle library?
I want to do something like this:
-
Triangle.pA = new PVector(100,200);Triangle.pB = new PVector(0,0);Triangle.a = 70;Triangle.b = 270;println("xy coordinate of C is: " + Triangle.pC")
(a, b and c are the lengths of the sides, A,B and C are the angles, and pA, pB and pC are coordinates)
I can do the trig to find out the angles but am struggling working out the coord of C.
James
1