@writegames.com/game-math
    Preparing search index...

    Function atan2Deg

    • Returns the angle (in degrees) between the X axis and the line going through both the origin and the given point.

      Parameters

      • y: number

        A numeric expression representing the cartesian y-coordinate.

      • x: number

        A numeric expression representing the cartesian x-coordinate.

      Returns number