# Arcsine

Grammar — Asin(x)
FlagsNative | Function

Returns the arcsine of a number. Allowed range is -1 to 1. The returned value is given in degrees.

# Arguments

  • fixed — Value

Returns — fixed

native fixed ASin(fixed x);

Category: Math / Trigonometry

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6716

    lv_radiusIter = lp_maxDistance;
    for ( ; ( (autoB9DE4296_ai >= 0 && lv_radiusIter <= autoB9DE4296_ae) || (autoB9DE4296_ai < 0 && lv_radiusIter >= autoB9DE4296_ae) ) ; lv_radiusIter += autoB9DE4296_ai ) {
        lv_angleDelta = (ASin(((lv_distanceBetweenPoints / 2.0) / lv_radiusIter)) * 2.0);
        auto4EC1E152_ai = lv_angleDelta;
        lv_angleIter = RandomFixed(0.0, lv_angleDelta);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6804

    lv_radiusIter = lv_maxSearchRadius;
    for ( ; ( (autoFC6C9A4D_ai >= 0 && lv_radiusIter <= autoFC6C9A4D_ae) || (autoFC6C9A4D_ai < 0 && lv_radiusIter >= autoFC6C9A4D_ae) ) ; lv_radiusIter += autoFC6C9A4D_ai ) {
        lv_angleDelta = (ASin(((lv_distanceBetweenPoints / 2.0) / lv_radiusIter)) * 2.0);
        autoF54F88EB_ai = lv_angleDelta;
        lv_angleIter = RandomFixed(0.0, lv_angleDelta);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:6900

    lv_radiusIter = lv_maxSearchRadius;
    for ( ; ( (autoFE9D12AD_ai >= 0 && lv_radiusIter <= autoFE9D12AD_ae) || (autoFE9D12AD_ai < 0 && lv_radiusIter >= autoFE9D12AD_ae) ) ; lv_radiusIter += autoFE9D12AD_ai ) {
        lv_angleDelta = (ASin(((lv_distanceBetweenPoints / 2.0) / lv_radiusIter)) * 2.0);
        autoDC2ACA37_ai = lv_angleDelta;
        lv_angleIter = RandomFixed(0.0, lv_angleDelta);