diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-05-24 01:06:33 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-05-24 01:10:12 -0700 |
commit | 21c0f72b53a594f41c464c17afbc5f500fc91f25 (patch) | |
tree | 622fcb05572a9a03abbbf8605b627c3c69bfc91b /src/stage.h | |
parent | 635e2e8f2b0007a52121c0240d445d0fcf82a231 (diff) |
libstage: rewrite aabb_to_rect() for less error
There was too much fractional math happening at once resulting in
artifacts like nodes sharing the same position jiggling relative to
eachother as they moved. Instead compute the various values discretely,
flooring their values.
This also integrates the node origin, which previously was ignored.
A clamp has also been added to prevent zero-size nodes in rect w or h when
their AABB dimensions are non-zero.
Diffstat (limited to 'src/stage.h')
0 files changed, 0 insertions, 0 deletions