Trigonometry in roblox (math.sin)

Hi guys,

I have a qestion for you. I want to know how to calculate side in right triangle. I know we have to use for example sin(alpha) = a/c but in roblox when I use math.sin(alpha) then result is incorret because it need radians instead of degrees. How should I calculate other sides in triangle then ? (I know 1 side and 1 angle)

1 Like

math.sin(math.rad(aplha)) = a/c whats wrong with this?

3 Likes

yes you are right, I dont know why this doesnt work for me I have somewhere error, but thank you anyway

May I ask how to use math.asin? This question doesn’t deserve to be a topic and is also related to trigonometry so I’m posting it here. I have tried printing math.asin(math.sin(math.rad(60))) and math.rad(math.asin(math.sin(math.rad(60)))), which should have output 60 but didn’t.

This should be

math.deg(math.asin(math.sin(math.rad(60))))

since you need to convert it to degrees.

1 Like