The post says " As noted, parameters to CFrame.Angles() must be specified in radians , not degrees. If you prefer degrees, simply use the math.rad() converter as shown in this example."
How do I write a radian if I’m not converting degree’s into Radian? The article doesn’t seem to say?
What I mean is, they say "CFrame.Angles() must be written in radians, not degrees and they tell you the function to convert a degree → radian. What I’m wondering, is how is a radian calculated or written? Because it didn’t look like they explained how to write a Radian?
Not that it matters, I mean converting degree into radian is fine, this is just for curiosity sake.
Edit: Like what I’m wondering is, how is a Radian written? Is it a float, integer, etc? And how to calculate it. What exactly is math.rad doing to change a degree into radian?
A radian is a form of angle measurement. Other mathematically acceptable forms of angle measurements are:
Degrees
Seconds/Minutes/Hours
You can convert degrees into radians easily with:
D * math.pi / 180
assuming D is in degrees.
In math equations, radians and polar coordinates are written with the theta symbol (θ), degrees are written in the degree symbol (°), minutes are written with a single tick (’), and seconds are written with a double tick (’’).
Seconds, minutes, and degrees can be combined into one accurate measurement. 40°20'50" is very close to 40.34722 degrees.
However, radians are used alone. This is because they are special to trigonometry, geometry, calculus, and more.
CFrames are matrixes, which is calculus. It makes most sense to use radians since it is most accurate and relevant.
Hopefully I answered your question (and gave a ton of useless information haha)