gradum-kit - v0.1.0
    Preparing search index...

    Function isPointInConvexPolygon

    • Function

      isPointInConvexPolygon

      Parameters

      • p: Point

        The point to test.

      • poly: Point[]

        The polygon's vertices, in order around its outline.

      Returns boolean

      true if the point is inside or on the border.

      Check whether a point lies inside a convex polygon, borders included. Note: the polygon must be convex; a concave one gives wrong answers.