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

◆ circular_bounds() [1/2]

std::function< bool(glm::vec2)> MayaFlux::Kinesis::circular_bounds ( glm::vec2  center,
float  radius 
)
inlinenoexcept

Containment test for a circle.

Parameters
centerNDC center.
radiusRadius in NDC units.

Definition at line 253 of file Bounds.hpp.

254{
255 float r2 = radius * radius;
256 return [center, r2](glm::vec2 p) {
257 glm::vec2 d = p - center;
258 return d.x * d.x + d.y * d.y <= r2;
259 };
260}
float radius

References radius.

Referenced by MayaFlux::Portal::Forma::Geometry::crosshair(), MayaFlux::Portal::Forma::Geometry::point(), and MayaFlux::Portal::Forma::Geometry::radial().

+ Here is the caller graph for this function: