[ "Equilateral", "Isosceles", "Scalene" ] randFromArray( TYPES ) function(){ if ( TYPE === "Equilateral" ){ return eqTriangle(); } if ( TYPE === "Isosceles" ){ return isoTriangle(); } if ( TYPE === "Scalene" ){ return scTriangle(); } }()
Is this triangle equilateral, isosceles, or scalene?
var tr = new Triangle( [ 0, 0 ], TRIANGLE[ 0 ], 5, {} ); tr.labels = { "angles" : clearArray( tr.niceAngles, [ 0, 1 ] ) }; tr.rotate( randRange( 0, 90 ) ); init({ range: tr.boundingRange( 1 ) }) tr.draw(); tr.drawLabels(); graph.TR = tr;
TYPE
• t

We know two angles of this triangle, so we can find the third by subtracting from `180`

`180 -TRIANGLE[ 0 ][ 0 ] - TRIANGLE[ 0 ][ 1 ] = TRIANGLE[ 0 ][ 2 ]`

graph.TR.labels = { "angles" : graph.TR.niceAngles }; graph.TR.drawLabels();

Because all three angles are different, this triangle is scalene.

Two angles are the same, therefore two corresponding sides are as well. Therefore, this triangle is isosceles. Isosceles means a triangle with same (iso) legs (sceles).

All angles equal 60. That means that all the sides are the same and that the triangle is equilateral. (Equilateral means equal(equi) sided(lateral).

var tr = new Triangle( [ 0, 0 ], TRIANGLE[ 0 ], 5, {} ); tr.labels = { "sides" : tr.niceSideLengths }; tr.rotate( randRange( 0, 90 ) ); init({ range: tr.boundingRange( 1 ) }) tr.draw(); tr.drawLabels();

Because all three sides are different, this triangle is scalene.

Two sides are the same, therefore, this triangle is isosceles. Isosceles means a triangle with same (iso) legs (sceles).

All sides are the same. That means that all the angles are 60 and that the triangle is equilateral. Equilateral means equal (equi) sided (lateral).