math-interpolate 0.1.0

Linear interpolation between two points to calculate the 3rd point.
Documentation
  • Coverage
  • 0%
    0 out of 4 items documented0 out of 3 items with examples
  • Size
  • Source code size: 3.05 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.25 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 9s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • alexiusacademia/math-interpolate
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • alexiusacademia

math-interpolate

math-interpolate is a Rust library that interpolates two points to calculate the third point in between them.

Usage

let p1 = Point::new(0.0, 0.0);  // x, y is 0.0, 0.0
let p2 = Point::new(5.0, 5.0);
let x: f32 = 3.0;

let result = interpolate(p1, p2, x);

println!("The value of y is {}.", result);