CTFTNKS Project Documentation - v1.3.0
    Preparing search index...

    Function isPointInRectangle

    • Checks if a point is inside a rectangle defined by 4 corners. Assumes convex shape (rectangle). Uses the dot product method (0 < AMAB < ABAB etc.)

      Parameters

      • point: Coord

        The point to check.

      • corners: Coord[]

        The 4 corners of the rectangle.

      Returns boolean

      True if the point is inside.