7 Commits

Author SHA1 Message Date
3d1819b4c0 Update glam requirement from >=0.10, <0.25 to >=0.10, <0.26
Updates the requirements on [glam](https://github.com/bitshifter/glam-rs) to permit the latest version.
- [Changelog](https://github.com/bitshifter/glam-rs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitshifter/glam-rs/commits)

---
updated-dependencies:
- dependency-name: glam
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-19 04:16:03 +00:00
f6fa4ecbce Merge pull request #102 from phaazon/release/4.3.1
Prepare v4.3.1.
2023-11-22 19:13:05 +01:00
e2f220ec15 Prepare v4.3.1. 2023-11-22 19:10:19 +01:00
c3670d6b0a Merge pull request #100 from perlindgren/master
Default for Spline
2023-11-22 00:09:57 +01:00
c6ba8476f2 Default for Spline 2023-10-27 21:20:24 +02:00
389f4d182d Update changelog (links). 2023-09-23 16:25:54 +02:00
8af9151dac Changelog fix. 2023-09-23 16:10:14 +02:00
3 changed files with 14 additions and 7 deletions

View File

@ -1,5 +1,6 @@
# Changelog # Changelog
* [4.3.1](#431)
* [4.3](#43) * [4.3](#43)
* [4.2](#42) * [4.2](#42)
* [4.1.1](#411) * [4.1.1](#411)
@ -42,14 +43,20 @@
* [0.1.1](#011) * [0.1.1](#011)
* [0.1](#01) * [0.1](#01)
# 4.3.0 # 4.3.1
> Nov 22, 2023
- Add `Default` implementation for `Spline`. [c6ba847](https://github.com/phaazon/splines/commit/c6ba847)
# 4.3
> Sep 23, 2023 > Sep 23, 2023
- Add support for `glam-0.23` and `glam-0.24`. (cdc48a4) - Add support for `glam-0.23` and `glam-0.24`. [cdc48a4](https://github.com/phaazon/splines/commit/cdc48a4)
- Add `Spline::clear` to clear a spline keys without deallocating its internal storage. (eca09f1) - Add `Spline::clear` to clear a spline keys without deallocating its internal storage. [eca09f1](https://github.com/phaazon/splines/commit/eca09f1)
# 4.2.0 # 4.2
> Feb 1, 2023 > Feb 1, 2023

View File

@ -1,6 +1,6 @@
[package] [package]
name = "splines" name = "splines"
version = "4.3.0" version = "4.3.1"
license = "BSD-3-Clause" license = "BSD-3-Clause"
authors = ["Dimitri Sabadie <dimitri.sabadie@gmail.com>"] authors = ["Dimitri Sabadie <dimitri.sabadie@gmail.com>"]
description = "Spline interpolation made easy" description = "Spline interpolation made easy"
@ -23,7 +23,7 @@ std = []
[dependencies] [dependencies]
cgmath = { version = ">=0.17, <0.19", optional = true } cgmath = { version = ">=0.17, <0.19", optional = true }
glam = { version = ">=0.10, <0.25", optional = true } glam = { version = ">=0.10, <0.26", optional = true }
nalgebra = { version = ">=0.21, <0.33", optional = true } nalgebra = { version = ">=0.21, <0.33", optional = true }
serde = { version = "1", features = ["derive"], optional = true } serde = { version = "1", features = ["derive"], optional = true }

View File

@ -27,7 +27,7 @@ use std::cmp::Ordering;
/// for the required interpolation mode, you get `None`. /// for the required interpolation mode, you get `None`.
/// - [`Spline::clamped_sample`]: behaves like [`Spline::sample`] but will return either the first /// - [`Spline::clamped_sample`]: behaves like [`Spline::sample`] but will return either the first
/// or last key if out of bound; it will return `None` if not enough key. /// or last key if out of bound; it will return `None` if not enough key.
#[derive(Debug, Clone)] #[derive(Debug, Clone, Default)]
#[cfg_attr( #[cfg_attr(
any(feature = "serialization", feature = "serde"), any(feature = "serialization", feature = "serde"),
derive(Deserialize, Serialize) derive(Deserialize, Serialize)