diff --git a/CHANGELOG.md b/CHANGELOG.md index 4985ff2e..ad5b4395 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,19 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog], and this project adheres to [Semantic Versioning]. +## [0.32.1] - 2026-03-06 + +### Fixed + +* Fixed the implementation of dividing a scalar value by a matrix. This was + actually dividing the matrix by the scalar value, with this fix + `1.0/m == m.recip()` is now true. + +### Added + +* Added matrix `recip()` method which returns a new matrix containing the + reciprocal of each element of the source matrix. + ## [0.32.0] - 2026-02-11 ### Breaking changes @@ -46,7 +59,7 @@ The format is based on [Keep a Changelog], and this project adheres to diagonal of the matrix. * Added `mul_diagonal_scale` methods to matrix types which multiply the matrix - by a scale vector without needing to mulitply by a scale matrix. + by a scale vector without needing to multiply by a scale matrix. * Added `mul_transpose_vecn` methods to matrix types which multiply the vector by the transpose of the matrix without needing to transpose it first. They can @@ -1384,7 +1397,8 @@ The format is based on [Keep a Changelog], and this project adheres to [Keep a Changelog]: https://keepachangelog.com/ [Semantic Versioning]: https://semver.org/spec/v2.0.0.html -[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.32.0...HEAD +[Unreleased]: https://github.com/bitshifter/glam-rs/compare/0.32.1...HEAD +[0.32.1]: https://github.com/bitshifter/glam-rs/compare/0.32.0...0.32.1 [0.32.0]: https://github.com/bitshifter/glam-rs/compare/0.31.1...0.32.0 [0.31.1]: https://github.com/bitshifter/glam-rs/compare/0.31.0...0.31.1 [0.31.0]: https://github.com/bitshifter/glam-rs/compare/0.30.10...0.31.0 diff --git a/Cargo.toml b/Cargo.toml index cc8c991f..99fc536d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "glam" -version = "0.32.0" # remember to update html_root_url +version = "0.32.1" # remember to update html_root_url edition = "2021" authors = ["Cameron Hart "] description = "A simple and fast 3D math library for games and graphics" diff --git a/README.md b/README.md index 12f444ce..1cd218d6 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ defined in `std`. For example: ```toml [dependencies] -glam = { version = "0.32.0", default-features = false, features = ["libm"] } +glam = { version = "0.32.1", default-features = false, features = ["libm"] } ``` To support both `std` and `no_std` builds in project, you can use the following @@ -98,7 +98,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.32.0", default-features = false } +glam = { version = "0.32.1", default-features = false } ``` Alternatively, you can use the `nostd-libm` feature. This will always include a @@ -114,7 +114,7 @@ std = ["glam/std"] libm = ["glam/libm"] [dependencies] -glam = { version = "0.32.0", default-features = false, features = ["nostd-libm"] } +glam = { version = "0.32.1", default-features = false, features = ["nostd-libm"] } ``` ### Optional features diff --git a/src/lib.rs b/src/lib.rs index f40cd943..5b19a69a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -271,7 +271,7 @@ and benchmarks. The minimum supported Rust version is `1.68.2`. */ -#![doc(html_root_url = "https://docs.rs/glam/0.32.0")] +#![doc(html_root_url = "https://docs.rs/glam/0.32.1")] #![cfg_attr(not(feature = "std"), no_std)] #![cfg_attr(target_arch = "spirv", feature(repr_simd))] #![cfg_attr(target_arch = "wasm64", feature(simd_wasm64))]