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

Return Maybe values from Arc2d.centerPoint etc. #136

Open
ianmackenzie opened this issue Jul 30, 2020 · 0 comments
Open

Return Maybe values from Arc2d.centerPoint etc. #136

ianmackenzie opened this issue Jul 30, 2020 · 0 comments
Assignees

Comments

@ianmackenzie
Copy link
Owner

It would be safest for functions like Arc2d.centerPoint, Arc2d.radius and corresponding functions in Arc3d (including 3D-specific ones like Arc3d.normalAxis) to return Maybe values when the arc swept angle is zero (the arc is actually a straight line). Currently they just return infinite values which are not super useful, and it's easy to forget or not realize that this is the case.

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

No branches or pull requests

1 participant