Last active
September 13, 2017 11:13
-
-
Save deque-blog/a7b6c951bafd9f7f9ebc2577483abc57 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
template<typename Coordinate> | |
Shape<Coordinate> allSpace() { | |
return [](Coordinate const&) { | |
return true; | |
}; | |
} | |
template<typename Coordinate> | |
Shape<Coordinate> intersect(Shape<Coordinate> const& lhs, Shape<Coordinate> const& rhs) { | |
return [=](Coordinate const& coord) { | |
return lhs(coord) && rhs(coord); | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment