Function closestSilhouettePointRect

Returns the closest point on the visibility silhouette of a rectangle

  • Parameters

    • rect: Vec2[]

      The top-right, top-left, bottom-left, bottom-right points (in that order) of the rectangle

    • p: Vec2

      A point

    Returns Vec2

    The closest point on the visibility silhouette of the rectangle