diff options
author | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-07 11:57:02 -0300 |
---|---|---|
committer | Juan Manuel Tomás <jtomas1815@gmail.com> | 2021-01-07 11:57:02 -0300 |
commit | ad4c09192e6144e3e914748f9ce4edf371cf75b8 (patch) | |
tree | 6488e069da854096cbce1465907484fe4b47f5f3 /src/main.rs | |
download | bezier-ad4c09192e6144e3e914748f9ce4edf371cf75b8.tar.gz bezier-ad4c09192e6144e3e914748f9ce4edf371cf75b8.zip |
Initial commit
Starting off with a function able to turn recursive linear
interpolations into their corresponding polynomial.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..1e4f704 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,5 @@ +fn main() { + let a = poly::Lerp::new(vec![1.0, 5.0, 8.0, 3.0, 10.0]); + println!("{:?}", a); + println!("{:?}", poly::lp(a)); +} |