14 releases (9 breaking)
new 0.10.1 | Jan 9, 2025 |
---|---|
0.9.2 | Jan 8, 2025 |
0.6.1 | Oct 28, 2016 |
0.6.0 | Jul 22, 2016 |
0.2.0 | Aug 30, 2015 |
#6 in #approximation
615 downloads per month
22KB
592 lines
Curve
The package provides curves.
Example
let x = curve::bezier::Linear::new(1.0, 5.0);
let y = curve::bezier::Linear::new(2.0, 3.0);
let points = x.trace(3).zip(y.trace(3)).collect::<Vec<_>>();
assert_eq!(points, vec![(1.0, 2.0), (3.0, 2.5), (5.0, 3.0)]);
Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.
Dependencies
~150KB