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

◆ top_right()

Kinesis::AABB2D MayaFlux::Portal::Forma::Surface::top_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 177 of file Surface.hpp.

178 {
179 return { .min = { 1.F - margin - w, 1.F - margin - h },
180 .max = { 1.F - margin, 1.F - margin } };
181 }
uint32_t h
Definition InkPress.cpp:28

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