Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trivial one- and zero-vertex polygons produce NaNs #210

Closed
byorgey opened this issue Aug 11, 2014 · 1 comment
Closed

trivial one- and zero-vertex polygons produce NaNs #210

byorgey opened this issue Aug 11, 2014 · 1 comment
Assignees
Labels

Comments

@byorgey
Copy link
Member

byorgey commented Aug 11, 2014

polygon (with & polyType .~ PolyRegular 1 1) :: [P2]

produces [P (NaN ^& NaN)]. Instead it ought to produce [P (1 ^& 0)].

Also, replacing PolyRegular 1 1 by PolyRegular 0 1 produces the same result. This is even more wrong; it ought to produce an empty list.

@bergey bergey added the bug label Aug 21, 2014
@byorgey byorgey self-assigned this Sep 11, 2015
@byorgey
Copy link
Member Author

byorgey commented Sep 12, 2015

Looking at this again, I am no longer convinced that PolyRegular 0 1 ought to produce an empty list; polygon is supposed to produce any TrailLike and there is not really any suitable way to have a TrailLike produce an empty list of points.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants