Chalkboard - v3.0.4
    Preparing search index...

    Function arctan2

    • Calculates the two-argument inverse tangent of a point.

      Parameters

      • y: number

        The y-coordinate of the point

      • x: number

        The x-coordinate of the point

      Returns number

      const angle = Chalkboard.trig.arctan2(1, 1); // Returns π/4