Coordinates.rs
Getting started
Add the following to your cargo.toml under [dependencies]
= "0.4.0"
If you want additional features — like serializing and deserializing —
your [dependencies] line will look more like this
= { = "0.4.0", = ["serde"] }
In a file import the coordinate system you want, or all of them through
coordinates::prelude::*
use Vector2;
If you want extra traits, such as magnitude or dot products you will also need to include the following
use *;
And finally initialize a variable
let var = Vector2
Acknowledgements
- rsekman, for contributing multiple PRs to the repo, and helping me refactor and track down a bug for version 0.4.0