# Arccosine
Grammar — Acos(x)
Flags —Native
|Function
Returns the arccosine of a number. Allowed range is -1 to 1. The returned value is given in degrees.
# Arguments
fixed
— Value
Returns — fixed
native fixed ACos(fixed x);
# Related
Category: Math / Trigonometry
- Sine —
fixed
— Sin - Cosine —
fixed
— Cos - Tangent —
fixed
— Tan - Arcsine —
fixed
— ASin - Arccosine —
fixed
— ACos - Arctangent From Deltas —
fixed
— ATan2 - Arctangent From Value —
fixed
— ATan
# Examples
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map/MapScript.galaxy:2115
lv_sideB = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_zenith, gv_voidCrystals[lv_index].lv_groundHeightStart);
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue03.sc2map — MapScript.galaxy:2115
lv_sideB = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_zenith, gv_voidCrystals[lv_index].lv_groundHeightStart);
lv_sideC = DistanceBetweenPoints(gv_voidCrystals[lv_index].lv_center, gv_voidCrystals[lv_index].lv_zenith);
lv_angleB = ACos((((lv_sideA*lv_sideA)+(lv_sideC*lv_sideC)-(lv_sideB*lv_sideB))/(2*lv_sideA*lv_sideC)));
gv_voidCrystals[lv_index].lv_minorRadius = (((lv_sideA * lv_sideC) * Sin(lv_angleB)) / SquareRoot((Pow(lv_sideC, 2.0) - Pow((lv_sideA * Cos(lv_angleB)), 2.0))));
if ((gv_voidCrystals[lv_index].lv_rotatesCounterClockwise == true)) {