Last active
September 11, 2017 19:51
-
-
Save deque-blog/ceca2ae5518ac31d52d35d5323b471ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shape2D disk(Coord2D center, double radius) { | |
return [=](Coord2D const& c) { | |
return distance(center, c) <= radius; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment