Asked • 05/10/19

Convert angle (radians) to a heading vector?

I have been looking everywhere trying to find out how to convert an angle in radians (expressed as -Pi to Pi) to a heading vector. The only `[x,y]` answer I have found is, `[cos(angle), sin(angle)]` , however, this doesn't work! Or am I missing something? I just want a vector pointing at a direction of a specified angle, and for it to have a magnitude of 1, such is called a "heading vector" I believe. At least it is in the various game code I look at. > CLARIFICATION: > > A heading vector is a vector with a magnitude of 1 with the start at 0, and the end (the arrowhead) at some value within a unit circle. A heading vector is a way of showing direction as a vector. I want to take an angle and express it as a vector, however, people seem to just be telling me how to do unit conversions. I appreciate you trying to be helpful, however, hopefully these clarifications will guide others to giving more fitting responses. Thanks.

1 Expert Answer

By:

Victoria V. answered • 05/10/19

Tutor
5.0 (402)

20+ years teaching Calculus

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.