Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
a82cf85619 | |||
37d3cc5f29 | |||
1e70ab882c | |||
2179c8300f | |||
e7a9723ae0 | |||
eca09f1baf | |||
e1b78070c6 | |||
cdc48a49a7 |
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,6 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
* [4.1.2](#412)
|
||||
* [4.3](#43)
|
||||
* [4.2](#42)
|
||||
* [4.1.1](#411)
|
||||
* [4.1](#41)
|
||||
* [4.0.3](#403)
|
||||
@ -41,6 +42,13 @@
|
||||
* [0.1.1](#011)
|
||||
* [0.1](#01)
|
||||
|
||||
# 4.3.0
|
||||
|
||||
> Sep 23, 2023
|
||||
|
||||
- Add support for `glam-0.23` and `glam-0.24`. (cdc48a4)
|
||||
- Add `Spline::clear` to clear a spline keys without deallocating its internal storage. (eca09f1)
|
||||
|
||||
# 4.2.0
|
||||
|
||||
> Feb 1, 2023
|
||||
|
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "splines"
|
||||
version = "4.2.0"
|
||||
version = "4.3.0"
|
||||
license = "BSD-3-Clause"
|
||||
authors = ["Dimitri Sabadie <dimitri.sabadie@gmail.com>"]
|
||||
description = "Spline interpolation made easy"
|
||||
@ -23,7 +23,7 @@ std = []
|
||||
|
||||
[dependencies]
|
||||
cgmath = { version = ">=0.17, <0.19", optional = true }
|
||||
glam = { version = ">=0.10, <0.23", optional = true }
|
||||
glam = { version = ">=0.10, <0.25", optional = true }
|
||||
nalgebra = { version = ">=0.21, <0.33", optional = true }
|
||||
serde = { version = "1", features = ["derive"], optional = true }
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
edition = "2018"
|
||||
|
||||
fn_args_layout = "Tall"
|
||||
fn_params_layout = "Tall"
|
||||
force_explicit_abi = true
|
||||
hard_tabs = false
|
||||
max_width = 100
|
||||
|
@ -56,6 +56,13 @@ impl<T, V> Spline<T, V> {
|
||||
spline
|
||||
}
|
||||
|
||||
/// Clear the spline by removing all keys. Keeps the underlying allocated storage, so adding
|
||||
/// new keys should be faster than creating a new [`Spline`]
|
||||
#[inline]
|
||||
pub fn clear(&mut self) {
|
||||
self.0.clear()
|
||||
}
|
||||
|
||||
/// Create a new spline by consuming an `Iterater<Item = Key<T>>`. They keys don’t have to be
|
||||
/// sorted.
|
||||
///
|
||||
|
Reference in New Issue
Block a user