Methods

1. jarvisAlgorithm(P)

        
            Description: Computes the convex hull using Jarvis's algorithm (gift wrapping).
Parameters: P: Array of points.
Returns: Array of points representing the vertices of the convex hull.

2. orientation(p1, p2, p3)

        
            Description: Determines the orientation of three points (clockwise or counterclockwise).
Parameters: p1, p2, p3: Points to determine the orientation.
Returns: Boolean indicating whether the orientation is clockwise.