Function atan2

  • Returns the angle (in radians) from the X axis to a point.

    Type Parameters

    • T extends number

    Parameters

    • x: T

      A number representing the cartesian x-coordinate.

    • y: T

      A number representing the cartesian y-coordinate.

    Returns Radian

    Math.atan2(x, y)