# Arctangent From Value
Grammar — Atan(x)
Flags —Native
|Function
Returns the arctangent of a number. The returned value is given in degrees.
# Arguments
fixed
— Value
Returns — fixed
native fixed ATan(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/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:772
}
else {
lv_angle = ATan((lv_y/lv_x));
}
AIAttackWaveAddEscortUnit(gv_pLAYER_02_SHUTTLE_BLUE, UnitGroupUnit(lp_escortGroup, lv_index), lv_shuttleToEscort, (lv_offset * lv_distanceModifier), lv_angle);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2map — MapScript.galaxy:772
}
else {
lv_angle = ATan((lv_y/lv_x));
}
AIAttackWaveAddEscortUnit(gv_pLAYER_02_SHUTTLE_BLUE, UnitGroupUnit(lp_escortGroup, lv_index), lv_shuttleToEscort, (lv_offset * lv_distanceModifier), lv_angle);