Figure out if its an Obtuse Angle Triangle (IConstructAngle)

380
2
07-18-2012 12:45 PM
DanielLaidlaw
New Contributor
I have three points from which I create a triangle, I use IConstructAngle constructThreePoint to get the angles of the triangle, my angles are returned as a double . Is there a way to tell if this in and obtuse angle triangle?  I seem to have forgotten my math.


       GeometryEnvironment geometryEnvironment = new GeometryEnvironment();
       IConstructAngle constructAngle = geometryEnvironment ;
       constructAngle.constructThreePoint(point1, point2,point3);

thanks Dan
0 Kudos
2 Replies
DanielLaidlaw
New Contributor
Should I just multiply by 180/pi  to convert from radians to degrees and see if its greater than 90 degrees??
0 Kudos
FengZhang2
Occasional Contributor
An obtuse triangle is a triangle in which one of the angles is an obtuse angle. The returned angle is the smaller angle formed by an imaginary line from the first to the second point and the second to the third point. Therefore, you may need to check all three angles to decide. The measure of the constructed angle is between -Pi and Pi. The conversion from is correct.

Should I just multiply by 180/pi  to convert from radians to degrees and see if its greater than 90 degrees??
0 Kudos