From 1a1f7ebc39c03209a39a64926217f918cc838578 Mon Sep 17 00:00:00 2001 From: Aevyrie Date: Mon, 8 May 2023 13:46:41 -0700 Subject: [PATCH] Make `FloatingOriginSettings::new` `pub` (#3) Closes #2 --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index ebdac08..0206c0d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,7 +183,9 @@ pub struct FloatingOriginSettings { } impl FloatingOriginSettings { - fn new(grid_edge_length: f32, switching_threshold: f32) -> Self { + /// Construct a new [`FloatingOriginSettings`] struct. This cannot be updated after the plugin + /// is built. + pub fn new(grid_edge_length: f32, switching_threshold: f32) -> Self { Self { grid_edge_length, maximum_distance_from_origin: grid_edge_length / 2.0 + switching_threshold,