Changes to snap to pixel

This commit is contained in:
alonso.torres 2023-01-17 23:20:54 +01:00
parent 0d96b5b798
commit c18d3c66a8
12 changed files with 75 additions and 57 deletions

View file

@ -203,7 +203,7 @@
(t/deftest halft-round-point
(let [p1 (gpt/point 1.34567 3.34567)
rs (gpt/half-round p1)]
rs (gpt/round-step p1 0.5)]
(t/is (gpt/point? rs))
(t/is (mth/close? 1.5 (:x rs)))
(t/is (mth/close? 3.5 (:y rs)))))