cubic_spline
Interpolation methods for computation of cubic spline points within the range of a discrete set of known points.
Example for flatten vec
use ;
let opts: SplineOpts = Default default;
let points = vec!;
let spline_points = from_flatten_points;
assert_eq!;
Example for tuples vec
use ;
let opts: SplineOpts = Default default;
let points = vec!;
let spline_points = from_tuples;
let = spline_points.last.unwrap;
assert_eq!;
Options
Name | Type | Default | Description |
---|---|---|---|
tension | f64 |
0.5 |
Tension |
num_of_segments | u32 |
16 |
Number of calculated points between known points |
disallow_x_stepping_back | bool |
false |
If true checks that every x value of point is greater than previous |
use ;
let opts = SplineOpts
Enjoy using!
License
This module is MIT licensed.