skip to content
Orx Learning
User Tools
Admin
Log In
Site Tools
Search
Tools
Show page
Old revisions
Export to PDF
Backlinks
Recent Changes
Media Manager
Sitemap
Log In
>
Recent Changes
Media Manager
Sitemap
Trace:
Welcome
Beginner's Guide
Config
Examples
Tutorials
en:examples:maths:angle_degrees_to_vector
====== Convert an angle in degrees to a directional vector ====== <code=c> orxFLOAT degRotation = 45; orxFLOAT radRotation = degRotation * orxMATH_KF_DEG_TO_RAD; orxFLOAT x = orxMath_Cos(radRotation); orxFLOAT y = orxMath_Sin(radRotation); orxVECTOR directionVector = {x, y, 0}; </code>
en/examples/maths/angle_degrees_to_vector.txt
ยท Last modified: 2025/09/30 17:26 (14 months ago) by
127.0.0.1
Page Tools
Show page
Old revisions
Backlinks
Export to PDF
Rename Page
Back to top