Rust 2d Point

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

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)