User Tools

Site Tools


en:examples:maths:convert_vector_to_radian_angle

Convert a Vector to an Angle (radians)

	orxVECTOR myVector = { 100, 100, 0 }; 
	orxFLOAT angle2 = orxMath_ATan(myVector.fY, myVector.fX);

Result

0.785398185 (45 degrees)

en/examples/maths/convert_vector_to_radian_angle.txt · Last modified: 2018/09/14 01:03 (4 years ago) (external edit)