From cac20b88bc763471983935cc47d9b986a408cd04 Mon Sep 17 00:00:00 2001 From: tcmal Date: Sun, 25 Aug 2024 17:44:19 +0100 Subject: chore(types): move to nalgebra-glm --- stockton-types/Cargo.toml | 2 +- stockton-types/src/lib.rs | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'stockton-types') diff --git a/stockton-types/Cargo.toml b/stockton-types/Cargo.toml index fd5336c..73cfd8a 100644 --- a/stockton-types/Cargo.toml +++ b/stockton-types/Cargo.toml @@ -5,6 +5,6 @@ authors = ["Oscar "] edition = "2018" [dependencies] -nalgebra = "0.18.0" +nalgebra-glm = "0.4.0" stockton-bsp = "2.0.0" downcast-rs = "1.0.4" \ No newline at end of file diff --git a/stockton-types/src/lib.rs b/stockton-types/src/lib.rs index 0adf8a5..e6a816e 100644 --- a/stockton-types/src/lib.rs +++ b/stockton-types/src/lib.rs @@ -15,7 +15,7 @@ //! Common types for all stockton crates. extern crate stockton_bsp; -extern crate nalgebra as na; +extern crate nalgebra_glm as na; #[macro_use] extern crate downcast_rs; @@ -28,12 +28,12 @@ pub use world::World; pub mod ent_map; /// Alias for convenience -pub type Vector2 = na::base::Vector2; +pub type Vector2 = na::Vec2; /// Alias for convenience -pub type Vector3 = na::base::Vector3; +pub type Vector3 = na::Vec3; /// Alias for convenience -pub type Vector2i = na::base::Vector2; +pub type Vector2i = na::IVec2; /// Alias for convenience -pub type Vector3i = na::base::Vector3; \ No newline at end of file +pub type Vector3i = na::IVec3; \ No newline at end of file -- cgit v1.2.3