MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ subtract_bounds() [1/2]

std::function< bool(glm::vec2)> MayaFlux::Kinesis::subtract_bounds ( std::function< bool(glm::vec2)>  a,
std::function< bool(glm::vec2)>  b 
)
inline

Difference of two containment tests.

Point is inside if a is true and b is false. Useful for donuts, cutouts, and exclusion zones.

Definition at line 424 of file Bounds.hpp.

427{
428 return [a = std::move(a), b = std::move(b)](glm::vec2 p) {
429 return a(p) && !b(p);
430 };
431}
size_t a
size_t b

References a, and b.