From 794cbf96b54b61613e68429b42097538b1cb229a Mon Sep 17 00:00:00 2001 From: Jeroen Gardeyn Date: Thu, 21 Mar 2024 12:07:29 +0100 Subject: [PATCH] added some docs to explain switching from f32 to f64 --- jagua-rs/src/lib.rs | 8 ++++++++ lbf/Cargo.toml | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/jagua-rs/src/lib.rs b/jagua-rs/src/lib.rs index d272bc9..faab67b 100644 --- a/jagua-rs/src/lib.rs +++ b/jagua-rs/src/lib.rs @@ -1,3 +1,11 @@ +//! +//! A fast and fearless Collision Detection Engine for 2D irregular cutting and packing problems. +//! +//! +//! This crate can be configured to use single or double precision floating points: +//! * By default, single precision is used: ```f32``` +//! * With feature ```double_precision```: ```f64``` + /// Everything collision detection engine related pub mod collision_detection; diff --git a/lbf/Cargo.toml b/lbf/Cargo.toml index ed084a5..7c09823 100644 --- a/lbf/Cargo.toml +++ b/lbf/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/JeroenGar/jagua-rs" authors = ["Jeroen Gardeyn"] [dependencies] -jagua-rs = { path = "../jagua-rs" , version = "0.1.1", features = [] } +jagua-rs = { path = "../jagua-rs" , version = "0.1.1", features = ["double_precision"] } rand = { version = "0.8.5", features = [ "small_rng" ] } rand_distr = "0.4.3" serde = { version = "1.0", features = ["derive"] }