Merge pull request #965 from dimforge/glam-up
Implement conversion traits for glam 0.16 and 0.17.
This commit is contained in:
commit
e3d67e7ee4
|
@ -29,6 +29,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
|
|||
`Transform ÷= UnitComplex`.
|
||||
- Added `Reflection::bias()` to retrieve the bias of the reflection.
|
||||
- Added `Reflection1..Reflection6` aliases for 1D to 6D reflections.
|
||||
- Added implementation of `From` and `Into` for converting between `nalgebra` types and types from
|
||||
`glam 0.16` and `glam 0.17`. These can be enabled by enabling the `convert-glam016`, and/or `convert-glam017`
|
||||
cargo features.
|
||||
|
||||
## [0.28.0]
|
||||
### Added
|
||||
|
|
|
@ -39,6 +39,8 @@ convert-bytemuck = [ "bytemuck" ]
|
|||
convert-glam013 = [ "glam013" ]
|
||||
convert-glam014 = [ "glam014" ]
|
||||
convert-glam015 = [ "glam015" ]
|
||||
convert-glam016 = [ "glam016" ]
|
||||
convert-glam017 = [ "glam017" ]
|
||||
|
||||
# Serialization
|
||||
## To use serde in a #[no-std] environment, enable the
|
||||
|
@ -87,6 +89,8 @@ proptest = { version = "1", optional = true, default-features = false,
|
|||
glam013 = { package = "glam", version = "0.13", optional = true }
|
||||
glam014 = { package = "glam", version = "0.14", optional = true }
|
||||
glam015 = { package = "glam", version = "0.15", optional = true }
|
||||
glam016 = { package = "glam", version = "0.16", optional = true }
|
||||
glam017 = { package = "glam", version = "0.17", optional = true }
|
||||
|
||||
|
||||
[dev-dependencies]
|
||||
|
|
|
@ -4,3 +4,7 @@ mod v013;
|
|||
mod v014;
|
||||
#[cfg(feature = "glam015")]
|
||||
mod v015;
|
||||
#[cfg(feature = "glam016")]
|
||||
mod v016;
|
||||
#[cfg(feature = "glam017")]
|
||||
mod v017;
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
#[path = "../common/glam_isometry.rs"]
|
||||
mod glam_isometry;
|
||||
#[path = "../common/glam_matrix.rs"]
|
||||
mod glam_matrix;
|
||||
#[path = "../common/glam_point.rs"]
|
||||
mod glam_point;
|
||||
#[path = "../common/glam_quaternion.rs"]
|
||||
mod glam_quaternion;
|
||||
#[path = "../common/glam_rotation.rs"]
|
||||
mod glam_rotation;
|
||||
#[path = "../common/glam_similarity.rs"]
|
||||
mod glam_similarity;
|
||||
#[path = "../common/glam_translation.rs"]
|
||||
mod glam_translation;
|
||||
#[path = "../common/glam_unit_complex.rs"]
|
||||
mod glam_unit_complex;
|
||||
|
||||
pub(self) use glam016 as glam;
|
|
@ -0,0 +1,18 @@
|
|||
#[path = "../common/glam_isometry.rs"]
|
||||
mod glam_isometry;
|
||||
#[path = "../common/glam_matrix.rs"]
|
||||
mod glam_matrix;
|
||||
#[path = "../common/glam_point.rs"]
|
||||
mod glam_point;
|
||||
#[path = "../common/glam_quaternion.rs"]
|
||||
mod glam_quaternion;
|
||||
#[path = "../common/glam_rotation.rs"]
|
||||
mod glam_rotation;
|
||||
#[path = "../common/glam_similarity.rs"]
|
||||
mod glam_similarity;
|
||||
#[path = "../common/glam_translation.rs"]
|
||||
mod glam_translation;
|
||||
#[path = "../common/glam_unit_complex.rs"]
|
||||
mod glam_unit_complex;
|
||||
|
||||
pub(self) use glam017 as glam;
|
Loading…
Reference in New Issue