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

◆ bottom_right()

Kinesis::AABB2D MayaFlux::Portal::Forma::Surface::bottom_right ( float  w,
float  h,
float  margin = 0.02F 
) const
inlinenoexcept

Rect of size (w, h) at the top-left corner, inset by margin.

Parameters
wWidth in NDC units.
hHeight in NDC units.
marginInset from both screen edges in NDC units.

Definition at line 265 of file Surface.hpp.

266 {
267 return { .min = { 1.F - margin - w, -1.F + margin },
268 .max = { 1.F - margin, -1.F + margin + h } };
269 }
uint32_t h
Definition InkPress.cpp:29

References h, and MayaFlux::Kinesis::AABB2D::min.