math-interpolate

Crates.iomath-interpolate
lib.rsmath-interpolate
version0.1.0
sourcesrc
created_at2024-07-06 08:21:57.932046
updated_at2024-07-06 08:21:57.932046
descriptionLinear interpolation between two points to calculate the 3rd point.
homepage
repositoryhttps://github.com/alexiusacademia/math-interpolate
max_upload_size
id1293847
size3,378
Alexius Academia (alexiusacademia)

documentation

README

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);
Commit count: 7

cargo fmt