Featured Posts

8. Bump Mapping in GLSL8. Bump Mapping in GLSL Introduction Bump mapping is essential in todays computer games, and computer graphics in general. Would you like to know the best thing about it? It is extremely simple to implement. Bump mapping works...

Read more

Swiftless GLSL Shader DeveloperSwiftless GLSL Shader Developer Swiftless GLSL Shader Developer   Version 0.1a Currently Swiftless GLSL Shader Developer is in it's first public release, and is currently in alpha status, meaning it is not complete and may contain...

Read more

Wordpress Optimization Wordpress Website Optimizations Introduction Wordpress itself is a fairly wonderful tool. Since switching to it, I find it is a lot quicker to make changes to my website and it is also quicker to get...

Read more

36. OpenGL Framebuffers36. OpenGL Framebuffers Introduction Frame buffers are one of those mythical things that we have all heard of, but many beginner OpenGL developers avoid because there is not much information about them, and they can be confusing...

Read more

1. Terrain Class1. Terrain Class Terrain is one of those things that so far, hasn't been perfectly recreated in computer graphics. But it is almost there! Looking over a beautiful landscape can be one of the most amazing feelings in the...

Read more

  • Prev
  • Next

7. Maths Radians

Posted on : 25-03-2010 | By : Swiftless | In : Maths

Tags: , , ,

0

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:

Radian Circle

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

VN:F [1.9.3_1094]
Please rate so I know where to improve the site. 1 means needs a lot of improvement, 10 means perfect. If you leave a low rating, please state why. I don't want people just coming to bash the site.
Rating: 8.3/10 (4 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
7. Maths Radians, 8.3 out of 10 based on 4 ratings

Related posts:

  1. 6. Maths Trigonometry
  2. OpenGL Framebuffer Tutorial Now Up
  3. 5. Maths Vector Dot Product
  4. 3. Maths Lines
  5. 2. Maths Pythagoras Theorem

Write a comment

Improve the web with Nofollow Reciprocity.