keen/math/geom2d/aa-rect
Sourcesplit-horizontally (aa-rect32, aa-rect32, aa-rect32) tuple3(a aa-rect32, fraction0 float32, fraction1 float32)split-vertically (aa-rect32, aa-rect32, aa-rect32) tuple3(a aa-rect32, fraction0 float32, fraction1 float32)try-move-within aa-rect32(outer aa-rect32, inner aa-rect32)Moves
inner to stay within outer without changing its size. If inner is too big, it will get centered.shrink-to-ratio aa-rect32(a aa-rect32, ratio size2-32)Largest rect within
a with the same proportions as ratioexpand-to-ratio aa-rect32(a aa-rect32, ratio size2-32)Smallest rect that contains
a and has the same proportions as ratio