You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Currently,
polygon_add_point
(inpolygon.c
) makes a call tosegment_intersect
before adding a point to the polygon (line 116). However, when the order of the two segments is swapped, the return value ofsegment_intersect
changes, andpolygon_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.
The text was updated successfully, but these errors were encountered: