alg_grid/
lib.rs

1// This Source Code Form is subject to the terms of the Mozilla Public
2// License, v. 2.0. If a copy of the MPL was not distributed with this
3// file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5//! alg-grid
6//! 
7//! `alg-grid` is a collection of helper functions for
8//! 2D and 3D grids, including Dijkstra's and A* algorithm.
9//! 
10//! These functions are implemented using this [website](https://www.redblobgames.com/pathfinding/a-star/implementation.html)
11//! as a reference. Other functions came from the `bracket_lib` crate.
12//! 
13//! This crate does not require a standard library.
14
15#![no_std]
16
17pub mod two_dim;
18pub mod three_dim;
19
20pub mod prelude {
21    #[cfg(feature = "two_dim")]
22    pub use crate::two_dim::*;
23    #[cfg(feature = "three_dim")]
24    pub use crate::three_dim::*;
25    pub use num_rational::BigRational;
26}
27
28pub use prelude::*;