MayaFlux 0.5.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 191 of file Surface.hpp.

192 {
193 return { .min = { 1.F - margin - w, -1.F + margin },
194 .max = { 1.F - margin, -1.F + margin + h } };
195 }
uint32_t h
Definition InkPress.cpp:28

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