open.mp | asin
  • Home
  • FAQ
  • Forum
  • Servers
  • Docs
  • Blog
  • Login
  • Englishاللغة العربيةar-TNবাংলাbosanski jezikDeutschΕλληνικάEspañoleestiفارسیFrançaisHrvatskimagyarBahasa IndonesiaItaliano日本語ქართულიlietuvių kalbaNederlandsNorskjęzyk polskiPortuguêsRomânăРусскийslovenski jezikсрпски језикไทยWikang TagalogTürkçeУкраїнськаاردوTiếng Việt简体中文繁體中文
warning Not Translated

This page has not been translated into the language that your browser requested. The English content is being shown as a fallback.

If you want to contribute a translation for this page then please click here.

asin

warning

This $function starts with a lowercase letter.

Description

Get the inversed value of a sine in degrees. In trigonometrics, arc sine is the inverse operation of sine.

NameDescription
Float:valuevalue whose arc sine is computed, in the interval [-1,+1].

Returns

The angle in degrees, in the interval [-90.0,+90.0].

Examples

//The arc sine of 0.500000 is 30.000000 degrees.

public OnGameModeInit()
{
    new Float:param, Float:result;
    param = 0.5;
    result = asin(param);
    printf("The arc sine of %f is %f degrees.", param, result);
    return 1;
}

Related Functions

  • floatsin: Get the sine from a specific angle.
  • floatcos: Get the cosine from a specific angle.
  • floattan: Get the tangent from a specific angle.
  • acos: Get the inversed value of a cosine in degrees.
  • atan: Get the inversed value of a tangent in degrees.
  • atan2: Get the multi-valued inversed value of a tangent in degrees.

Community

  • Discord
  • Instagram
  • Twitter
  • Twitch
  • YouTube
  • Facebook
  • VK

More

  • SA-MP
  • Blog
  • GitHub