@nevware21/ts-utils
    Preparing search index...

    Function mathCos

    The mathCos() function returns the cosine of a number.

    0.12.0

    A number (given in radians)

    The cosine of the given number

    mathCos(0); // 1
    mathCos(Math.PI / 2); // 0 (approximately)
    mathCos(Math.PI); // -1
    • Returns the cosine of a number.

      Parameters

      • x: number

        A numeric expression that contains an angle measured in radians.

      Returns number