math docs
    Preparing search index...

    Function containsPoint

    • Tests whether a point lies inside the triangle (a, b, c). Works for either winding order; points on an edge or vertex are considered inside.

      Parameters

      • a: readonly [number, number]

        the first vertex of the triangle.

      • b: readonly [number, number]

        the second vertex of the triangle.

      • c: readonly [number, number]

        the third vertex of the triangle.

      • point: readonly [number, number]

        the point to test.

      Returns boolean

      true if the point is inside (or on the boundary of) the triangle.