Question: Using DrRacket write the function in-triangle that consumes four point structs p1, p2, p3, and p, representing points in the Euclidean plane with rational coordinates,
Using DrRacket write the function in-triangle that consumes four point structs p1, p2, p3, and p, representing points in the Euclidean plane with rational coordinates, and produces a Boolean value which is true if and only if the point p is on or within the (possibly degenerate) triangle defined by p1, p2, and p3. You should include in your code: (define-struct point (x y))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
