Rust 2d Point

Apollo 5776731e72 Pythagorean Theorem for Point.distance пре 1 месец
examples ff9375424e Point.distance needs to be properly designed пре 1 месец
src e07c18dde8 Implemented mathmatics for distance пре 1 месец
.gitignore 5caa67c546 v0.1.0 basic i64 Point пре 1 месец
Cargo.lock 5776731e72 Pythagorean Theorem for Point.distance пре 1 месец
Cargo.toml 5776731e72 Pythagorean Theorem for Point.distance пре 1 месец
LICENSE 5caa67c546 v0.1.0 basic i64 Point пре 1 месец
README.md 9ca4a3450f Released v0.1.4 'Option<serde>' пре 1 месец

README.md

Point

Rust 2d Point

Features

  • Arithmetics overloaded (+, -, *, /, and % and their Assign friends (i.e. +=, -=))
  • Point-likes handled (Point can handle (T, T) as Point-likes)
  • Tested (Striving for 100% test coverage)
  • Great for simple 2 dimension environments (where (1, 1) to (3, 3) has a distance of 2 or (2, 2))
  • serde supported *
  • Uses anyhow::Error for the TryFrom<String> implementation

* This is hidden behind the serde feature (This feature didn't work under v0.1.1-v0.1.3, it was fixed in v0.1.4)