Radians/draft: Difference between revisions
>NXTBoy No edit summary |
m Text replacement - "</SyntaxHighlight>" to "</syntaxhighlight>" Tags: mobile web edit mobile edit |
||
(One intermediate revision by the same user not shown) | |||
Line 32: | Line 32: | ||
3 Degrees => 0.052359877559829887307710723054658 Radians | 3 Degrees => 0.052359877559829887307710723054658 Radians | ||
4 Degrees => 0.069813170079773183076947630739545 Radians | 4 Degrees => 0.069813170079773183076947630739545 Radians | ||
</ | </syntaxhighlight> | ||
And the reverse: | And the reverse: | ||
Line 41: | Line 41: | ||
3 Radians => 171.88733853924696263039446444232 Degrees | 3 Radians => 171.88733853924696263039446444232 Degrees | ||
4 Radians => 229.18311805232928350719261925642 Degrees | 4 Radians => 229.18311805232928350719261925642 Degrees | ||
</ | </syntaxhighlight> | ||
And so on. You can convert Degrees to Radians and Radians to Degrees using [http://www.10ticks.co.uk/radianConverter.aspx online conversion tools], with your calculator, or with the following number and functions: | And so on. You can convert Degrees to Radians and Radians to Degrees using [http://www.10ticks.co.uk/radianConverter.aspx online conversion tools], with your calculator, or with the following number and functions: |
Latest revision as of 04:54, 27 April 2023
Reason: Irrelevant content, and worse than the original page
Radians and degrees are units of measurement for angles. You use radians for many things, like figuring out the size of an angle on a triangle, denoting and using rotations and other cool stuff.
Why do we need them?
Radians and degrees are simple a way to use and describe angles with specific numbers. They are used a lot in real life and help us calculate how to build something correctly. You can even use them on Roblox to make cool CFramed art.
How do we use them?
Radians and degrees can be used interchangebly, as there is a formula to convert between the two. This formula can be found by observing the math.rad and math.deg functions, as they convert degrees into radians, and vice versa.
Most people like using degrees for complicated angles, and in Roblox, most people will use degrees to simplify the CFrame that they are using.
Radians
Radians can be used in Roblox by using the function math.rad and inputting a value in degrees. That function will output the correct converted value from degrees to radians. From this, the CFrame function CFrame.Angles (which only uses radians for it's input) can create a rotation for a CFrame.
Advanced
The above examples have used whole numbers and rather clean fractions. Unfortunately, if you want to make something like a "spiralling staircase", you will need to work with much finer "pie slices" than the ones above, and you will get decimals. However, the principle and the computation is the same:
For example:
0 Degrees => 0 radians
1 Degree => 0.017453292519943295769236907684886 Radians
2 Degrees => 0.034906585039886591538473815369772 Radians
3 Degrees => 0.052359877559829887307710723054658 Radians
4 Degrees => 0.069813170079773183076947630739545 Radians
</syntaxhighlight>
And the reverse:
1 Radian => 57.295779513082320876798154814105 Degrees
2 Radians => 114.59155902616464175359630962821 Degrees
3 Radians => 171.88733853924696263039446444232 Degrees
4 Radians => 229.18311805232928350719261925642 Degrees
</syntaxhighlight>
And so on. You can convert Degrees to Radians and Radians to Degrees using online conversion tools, with your calculator, or with the following number and functions:
math.pi
Roblox reads this as Pi, which is approximately 3.141592654.
math.rad (x)
Converts x (in degrees) into Radians. Example: math.rad(90) results in 1.5707963267.
math.deg (x)
Converts x (in Radians) into degrees. Example: math.deg(3.141592654) results in 180.
See Also