Strata - v1.4.10
    Preparing search index...

    Function arePointsCollinear

    • Uses triangle area determinant to check if 3 points are collinear. If they are, they can't make a triangle, so the determinant will be 0!

       0     1     2
      

      ─────■─────■─────■

      Fun fact, you can use this same determinant to check the order of the points in the triangle

      NOTE: Should this use a buffer instead? NOTE: Should this use a buffer instead? [x0, y0, x1, y1, x2, y2]?

      Parameters

      • points: Triangle

      Returns boolean