You are currently viewing the GMLscripts.com static mirror. Forum access and script submissions are not available through this mirror.

Invert GMLscripts.com

acos

acos(rad,n)
Returns the arccosine of a given angle for the nth repetition.
COPY/// acos(rad,n)
//
//  Returns the arccosine of a given angle for the nth repetition.
//
//      rad         angle, radians, real
//      n           repetition, integer, real
//
/// GMLscripts.com/license
{
    var a,n,p2;
    a = arccos(argument0);
    n = argument1;
    p2 = 2*pi;
    return a - 2 * n * a + p2 * n + floor(n / 2) * (4 * a - p2);
}

Contributors: Leif902, xot

GitHub: View · Commits · Blame · Raw