User Tools

Site Tools


en:examples:maths:convert_vector_to_radian_angle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:examples:maths:convert_vector_to_radian_angle [2018/09/14 05:03 (12 days ago)] (current)
sausage created
Line 1: Line 1:
 +====== Convert a Vector to an Angle (radians) ======
  
 +<code c>
 + orxVECTOR myVector = { 100, 100, 0 }; 
 + orxFLOAT angle2 = orxMath_ATan(myVector.fY,​ myVector.fX);​
 +</​code>​
 +
 +===== Result =====
 +0.785398185 (45 degrees)
en/examples/maths/convert_vector_to_radian_angle.txt ยท Last modified: 2018/09/14 05:03 (12 days ago) by sausage