Latest UploadsPlatdude SpottingJayenkaiNom nom nomJayenkaiRainbow TroutPakzKing SalmonPakzSnookerJayenkaiYou've ... o have youJayenkai
 Articles + Tutorials > Advanced Techniques ( Created 18 September 2013 | Last Edited 18 September 2013)

Maths 101 - Episode 0: Degrees and Radians by shroom_monk | No Votes
An introduction to a series of maths articles, starting with an overview of degrees and radians
For general use
Hello everyone! So, I've decided to write a few articles on various interesting bits of maths, most of which will probably be applicable to some coding task or another, as well as for general interest. Different topics will be split across different posts, and we'll see how it goes! I'm open to any questions or requests.

## Degrees

Chances are you already know what degrees are, but I'm going to briefly define them here for ease of comparison to radians in a minute.

Degrees are a unit, but rather than measuring length, weight or time, they measure angles. A full rotation is defined to be 360 degrees. Why 360? It's a hang-on from the base-60 counting methods of old, and is useful because 360 is actually divisible by quite a lot of numbers.

We use degrees because they're easy for us to deal with. But if you've ever done any coding with trigonometric functions (sin, cos, etc, which I'll cover next time), you may have found, depending on the language you're using, that the functions do not give the results you expect. This is probably because those functions were set to use radians rather than degrees.

Radians are a different unit for measuring angles, like how metres and feet are different measures for length. One radian is approximately equal to 57.3 degrees, but this is not a good definition.

The true definition of a radian is this: imagine you have a sector of a circle (shown below). This sector will enclose an angle, which we shall call theta (theta, written θ, is the Greek letter often used to represent angles), and will also have a radius, which we shall call r.

The angle theta will have a value of 1 radian if the length of the arc that encloses the sector is equal to r, the radius.

Simple! But why should we care? Surely degrees are a much more intuitive way of measuring angles? Well, it turns out that the radian has lots of interesting mathematical properties that make it much easier to do maths if we use radians instead of degrees.

For instance: the ratio of the radius of a sector to the length of its arc is constant, so if we have a sector with angle theta radians, then the length of the arc is equal to theta * r. Now, there are exactly 2*pi radians in a complete rotation, so as a consequence of this, the circumference of a circle is the angle it encloses multiplied by its radius - so 2 * pi * r!

## Summary

• We usually use degrees to measure angles because they're easy to comprehend.
• Radians are an alternative unit, where a circle sector whose arc is the same length as its radius is said to enclose an angle of 1 radian.
• The length of a circle sector's arc is the angle it encloses multiplied by its radius.
• There are 2PI radians in a circle, so 180 degrees = PI radians.
• Different programming languages will have their maths libraries set to use either radians or degrees, but many will use radians because they have many useful mathematical properties. Usually, maths libraries will provide a conversion function between the two units.

So, that's degrees and radians. I thought it would be useful to get this out of the way now, to avoid problems for next time, when we will look at some trigonometry.

This section is something of an extended footnote for those who are interested, and can happily be ignored. Gradians (or grads) are a third unit for angles, which you may have noticed floating around if you've ever played about with a scientific calculator.

Gradians were invented by the French back when the metric system was gaining popularity. They figured it would be good to measure our angles in metric as well, so invented grads, where one right angle was equal to 100 grads (rather than 90 degrees), making one full rotation equal to 400 grads.

Of course, 360 is divisible by many more numbers than 400 (for instance, the very useful 30 degrees is an awkward 33⅓ grads), so it never caught on. They're all but forgotten now, and serve no particularly useful purpose.

There are no comments for this entry. -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 672|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
 Latest PostsJeremy Bloody Kyle steve_ancell Mon 09:45 GamerBlock Jayenkai Mon 09:06 Laptop Aaargh... Jayenkai Mon 07:06 Changing Thumbnail Sizes Jayenkai Mon 05:27 Technology on Planes therevillsgames Sat 17:00 London Car/Stab Incident steve_ancell Sat 12:10 A New Korg Gadget! Jayenkai Sat 04:53 Happy Birthday, Spinal Jayenkai Fri 08:40 Watch Switch - Fitbit Blaze rockford Fri 03:52 Happy Birthday Evil Roy Ferguson rockford Wed 16:21 More

 Latest Items Blog : My Arduino experience.steve_ancell Fri 13:45 Snippet : Skylinesspinal Fri 06:13 Showcase : Infinitronrychan Tue 03:02 Dev-Diary : PS2 to N64 Adapterspinal Sun 10:49 Link : Vector Tutorials/Help page.Pakz Thu 23:00 Blog : mini projectspinal Sun 10:13 Showcase : Blockman ReturnsJayenkai Fri 03:04 Snippet : Wall Tracing on Random Maps (rpg)rskgames Wed 22:48 Snippet : Path FollowingPakz Mon 16:25 Snippet : Flowers (Jan 2017)Kuron Thu 01:13 Showcase : Clusters of Hextherevillsgames Mon 15:01 Article : Maths 101 - Episode 1: Basic Trigonometryshroom_monk Sun 14:07 Article : Maths 101 - Episode 5: Line Intersectionshroom_monk Sun 14:02 Dev-Diary : Normals and Dot productsPakz Sat 20:37 Pets : Molly On The CouchJayenkai Thu 04:32More

Who's Online
Jayenkai
Mon, at 23:52
rskgames
Mon, at 22:25
Mon, at 20:48
Evil Roy Ferguson
Mon, at 17:56
steve_ancell
Mon, at 17:22
zzoom
Mon, at 16:39
Pakz
Mon, at 14:26
spinal
Mon, at 14:18
Afr0
Mon, at 13:08
shroom_monk
Mon, at 12:43