Lua
C++
Edit

ACos

This function returns the arc cosine of the specified value.

Syntax

Parameter Description
value cosine value

Returns

Returns the arc cosine.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    float angle = -65.0f;

    float s = Sin(angle);
    float c = Cos(angle);
    float t = Tan(angle);

    Print("Sin: " + String(ASin(s)));
    Print("Cos: " + String(ACos(c)));
    Print("Tan: " + String(ATan(t)));

    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.