Closed GlitchlessCode closed 6 months ago
Add the following functions:
sin⁻¹(x)
cos⁻¹(x)
tan⁻¹(x)
atan2(y, x)
gm:arctan2
gm:arcsin
gm:arccos
gm:arctan
$(x)
-1 ≤ x ≤ 1
gm:arctan2(y, x)
$(y)
I just realised that I accidentally left a debugging tellraw in my code, but I fixed that now :P
epic
The Suggestion
Add the following functions:
sin⁻¹(x)
cos⁻¹(x)
tan⁻¹(x)
atan2(y, x)
Implementation description
gm:arctan2
use the sqrt function from #4gm:arcsin
,gm:arccos
andgm:arctan
fail when$(x)
is not presentgm:arcsin
andgm:arccos
both fail when$(x)
is not with the bounds-1 ≤ x ≤ 1
gm:arctan2(y, x)
fails when either$(x)
or$(y)
are not presentgm:arctan2(y, x)
is actually more efficient thangm:arctan
gm:arcsin
,gm:arccos
,gm:arctan
andgm:arctan2
to list of functions