diku-canvas icon indicating copy to clipboard operation
diku-canvas copied to clipboard

piecewiseAffine function crashes when all elements in list are equal

Open Cavtheman opened this issue 9 months ago • 0 comments

Calling the piecewiseAffine function such that it would draw no line crashes the program. The issue only appears when all elements in the list are equal. Calling piecewiseAffine white 1 [(0,0);(0,0);(0,0)] will crash, but piecewiseAffine white 1 [(0,0);(0,0);(0,1)] will not.

Cavtheman avatar Sep 14 '23 08:09 Cavtheman