Open
Description
Currently, polygon_add_point
(in polygon.c
) makes a call to segment_intersect
before adding a point to the polygon (line 116). However, when the order of the two segments is swapped, the return value of segment_intersect
changes, and polygon_add_point
fails in some of the tests when it's expected to succeed.
As students are updating this code to work with their new segment structs, they may (understandably) ignore the order of segments and accidentally swap them; due to the above issue, they then end up stuck trying to figure out why the tests suddenly fail.
Metadata
Metadata
Assignees
Labels
No labels