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/8fa46bff09f2e8d6304c9717d8020223 to your computer and use it in GitHub Desktop.
Save deque-blog/8fa46bff09f2e8d6304c9717d8020223 to your computer and use it in GitHub Desktop.
Shape2D ring(Coord2D center, double smallRadius, double bigRadius) {
return intersect(
disk(center, bigRadius),
outside(disk(center, smallRadius))
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment