# Arctangent From Value

Grammar — Atan(x)
FlagsNative | Function

Returns the arctangent of a number. The returned value is given in degrees.

# Arguments

  • fixed — Value

Returns — fixed

native fixed ATan(fixed x);

Category: Math / Trigonometry

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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);