Skip to content

scene: fix scaling of negative coordinates

Simon Ser requested to merge github/fork/zsugabubus/scale-round into master

Created by: zsugabubus

round() rounds away from zero that can cause unwanted lengthening of dimensions when sides of box differ in their sign:

scale_length(2, -1, 1.5) == 4 (-1.5 -> -2; 1.5 -> 2) scale_length(2, 1, 1.5) == 3

Edited by Kirill Primak

Merge request reports