figureone
    Preparing search index...

    Function threePointAngleMin

    • Returns the minimum angle from the line (p1, p2) to the line (p1, p3).

      Parameters

      Returns number

      const threePointAngleMin = Fig.threePointAngleMin;
      const getPoint = Fig.getPoint;

      const p1 = threePointAngleMin(getPoint([1, 0]), getPoint([0, 0]), getPoint([0, 1]));
      console.log(p1);
      // 1.5707963267948966

      const p2 = threePointAngleMin(getPoint([0, 1]), getPoint([0, 0]), getPoint([1, 0]));
      console.log(p2);
      // -1.5707963267948966