by BurnedImageGames » Dec 18, 2007 @ 8:24pm
I'm having problems getting the correct info from ClassEMath::Cotan. I would like to find an angle of a right triangle. Say x0,y0 = 0,0 and x1,y1 = 20,15. tanX = 15/20 = 0.75 the cotan would return the degree 36.87. I could then use this info to set a trajectory from x0,y0 to x1,y1. I understand that the value return by Cotan is fixed point. I have tried converting it but I can not tell if the problem is in my use of the Cotan function or the FixedToFloat function. Also is there a way I can draw the value of a float to the screen?