# 7. Maths Radians

Welcome to Radians. Radians are a huge concept that really starts taking you into a new level of maths. Although, I personally find it rather simple. It is all about trigonometry. In fact it is the very core of trigonometry, only now we are going to see the whole picture.

Now there are two types of angles, you have your degrees which go up to which can range from 0 to 360 in a circle. And your radians which range from 0 to 2PI.

Hence:

0 degrees = 0 radians

90 degrees = PI/2 radians

180 degrees = PI radians

270 degrees = 3PI/2 radians

360 degrees = 2PI radians

Now lets just take a look at converting Degrees to Radians and Radians back to Degrees.

To convert from Degrees to Radians:

Degrees * PI / 180

Also written as:

Degrees / 180 * PI

To convert from Radians to Degrees:

Radians * 180 / PI

Also written as:

Radians / PI * 180

Now lets take a look at our Unit Circle from which trigonometry was born:

Lookie, a right angled triangle!

Now this is a unit circle, as you can see, it has a radius of 1 unit.

So lets start taking a look at how we can find point P on that diagram.

Using our lovely trigonometry:

cos@ = x/1

therefore:

cos@ = x

!! We have our x position from our camera class in OpenGL !!

sin@ = y/1

therefore:

sin@ = y

!! We have our y position from our camera class in OpenGL !!

And now you have your point P. Simple isn’t it.

If you have any questions, please email me at swiftless@gmail.com