What you need to know is this
put in you angle and hyp length and that's you!
or!!!
try this stupid wee program, that'll work it out for you. don't put large number in it tho, or the triangle will be drawn off screen ^_^
adj#=Sin(ang)*hyp opp#=Tan(ang)*adj
put in you angle and hyp length and that's you!
or!!!
try this stupid wee program, that'll work it out for you. don't put large number in it tho, or the triangle will be drawn off screen ^_^
hyp#=Input(" Enter hyp line length") ang#=Input(" Enter an Angle") ang1#=Input(" Enter another Angle (enter -1 for no angle)") adj#=Sin(ang)*hyp opp#=Tan(ang)*adj If ang1<0 Then ang1=180-90-ang Graphics 800,600 SetBuffer BackBuffer() ;Text 0,0,"adj="+adj p1x=150 p1y=400 p2x=adj*100 p2y=0 p3x=0 p3y=opp*100 Line p1x ,p1y ,p1x+p2x ,p1y-p2y Line p1x+p2x,p1y-p2y,p1x+p2x+p3x,p1y-p2y-p3y Line p1x+p2x+p3x,p1y-p2y-p3y,p1x,p1y Text p1x+(0.5*p2x),p1y+10,adj Text p1x+p2x+7,p1y-(0.5*p3y),opp Text p1x+(0.5*p2x)-15,p1y-(0.5*p3y)-15,hyp Color 100,100,100 Text p1x-20,p1y+20,ang Text p1x+p2x+20,p1y+20,"90" Text p1x+p2x+20,p1y-p3y-20,ang1 Flip WaitKey()