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

◆ is_in_bounds() [2/2]

MAYAFLUX_API bool MayaFlux::is_in_bounds ( double  window_x,
double  window_y,
uint32_t  window_width,
uint32_t  window_height 
)

Check if a point in window coordinates is inside the window bounds.

Parameters
window_xX coordinate in window space
window_yY coordinate in window space
window_widthWindow width in pixels
window_heightWindow height in pixels
Returns
true if point is within [0, width) × [0, height)

Definition at line 101 of file Windowing.cpp.

103{
104 return window_x >= 0.0 && window_x < static_cast<double>(window_width) && window_y >= 0.0 && window_y < static_cast<double>(window_height);
105}

Referenced by is_in_bounds().

+ Here is the caller graph for this function: