Skip to content

Commit 4673ba3

Browse files
committed
- add prelude for convenience
1 parent 06fcead commit 4673ba3

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/lib.rs

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2105,6 +2105,27 @@ pub fn gjk_3d<T: Float + FloatOps<T> + NumberOps<T> + SignedNumber + SignedNumbe
21052105
false
21062106
}
21072107

2108+
/// Export float types and all functions for qick and easy integration
2109+
pub mod prelude {
2110+
#[doc(hidden)]
2111+
pub use crate::{
2112+
// modules
2113+
vec::*,
2114+
mat::*,
2115+
num::*,
2116+
quat::*,
2117+
swizz::*,
2118+
2119+
// types
2120+
Vec2f, Vec3f, Vec4f,
2121+
Mat2f, Mat3f, Mat34f, Mat4f,
2122+
Quatf,
2123+
2124+
// functions in lib.rs
2125+
*,
2126+
};
2127+
}
2128+
21082129
// tests;;
21092130
// quilez functions
21102131
// quat tests

0 commit comments

Comments
 (0)