curveipo 1.0.0

2D curve interpolation
Documentation
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body>
<h1>curveipo - 2D curve interpolation</h1>

<p><a href="https://bues.ch/">https://bues.ch/</a></p>

<p><a href="https://bues.ch/cgit/curveipors.git">https://bues.ch/cgit/curveipors.git</a></p>

<p><a href="https://github.com/mbuesch/curveipors">https://github.com/mbuesch/curveipors</a></p>

<h1>Example</h1>

<pre><code>use curveipo::{Curve, prelude::*};

// Float curve.
let curve = Curve::new([
    // (x, y) curve point
    (1.0_f32, -20.0_f32),
    (2.0, 2.0),
    (10.0, 20.0),
    (20.0, -17.0),
]);

// Linear interpolation in float curve with float result.
let x = 3.0;
let y_interpolated = curve.lin_inter(x);
float_eq::assert_float_eq!(y_interpolated, 4.25, abs &lt;= 0.001);

// Integer curve.
let curve = Curve::new([
    // (x, y) curve point
    (1_i16, -20_i16),
    (2, 2),
    (10, 20),
    (20, -17),
]);

// Linear interpolation in integer curve with rounded integer result.
let x = 3;
let y_interpolated = curve.lin_inter(x);
assert_eq!(y_interpolated, 4);
</code></pre>

<h1>License</h1>

<p>Copyright (c) 2022 Michael Büsch <a href="&#x6D;&#97;&#x69;l&#x74;o:&#x6D;&#64;&#x62;&#117;&#x65;&#x73;&#46;&#99;&#104;">&#x6D;&#64;&#x62;&#117;&#x65;&#x73;&#46;&#99;&#104;</a></p>

<p>Licensed under the Apache License version 2.0 or the MIT license, at your option.</p>

<p>SPDX-License-Identifier: Apache-2.0 OR MIT</p>
</body></html>