Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active September 11, 2017 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/ceca2ae5518ac31d52d35d5323b471ae to your computer and use it in GitHub Desktop.
Save deque-blog/ceca2ae5518ac31d52d35d5323b471ae to your computer and use it in GitHub Desktop.
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