var LENGTH = 9;
var ANGLE_TWO = ANGLE_ONE + DIFF;
var ANGLE_ONE_R = ANGLE_ONE * PI / 180;
var ANGLE_TWO_R = ANGLE_TWO * PI / 180;
init({
range: [ [-11, 15], [-10, 10] ],
scale: 20
});
style({ stroke: BLUE, arrows: "-->" });
line([0, 0], [LENGTH * cos(ANGLE_ONE_R), LENGTH * sin(ANGLE_ONE_R)]);
line([0, 0], [LENGTH * cos(ANGLE_TWO_R), LENGTH * sin(ANGLE_TWO_R)]);
style({ stroke: BLUE, arrows: null });
arc([0, 0], 1, ANGLE_ONE, ANGLE_TWO);
addMouseLayer();
graph.protractor = protractor([14, -8]);
graph.showOrigin = function() {
graph.protractor.moveTo( 0, 0 );
};
graph.showCorrect = function() {
graph.showOrigin();
graph.protractor.rotateTo(540 - ANGLE_ONE - DIFF);
};