From 6aabd0123961d90095df3cefefeb0718f94aa6fc Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Tue, 10 Nov 2020 23:31:58 +0100 Subject: Add constant for the grid accuracy 0.5 was used as a magical number throughout the code for that until now, which I now changed. --- src/grid.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/grid.rs') diff --git a/src/grid.rs b/src/grid.rs index ecc59c3..72a849a 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -3,6 +3,9 @@ use crate::transform::Transform; use raylib::drawing::RaylibDraw; use raylib::ffi::Color; +/// The internal grid length which will be used to snap things to it. +pub const SNAP_SIZE: f32 = 0.5; + pub const LINE_COLOUR: Color = Color { r: 255, g: 255, -- cgit v1.2.3-70-g09d2