# minmath
[](https://github.com/Jodus-Melodus/minmath/stargazers)
[](https://github.com/Jodus-Melodus/minmath/blob/main/LICENSE.md)
[](https://github.com/JodusMelodus/minmath/actions/workflows/tests.yml)
[](https://crates.io/crates/minmath)
[](https://crates.io/crates/minmath)
[](https://docs.rs/minmath)
[](https://www.rust-lang.org/)
## Quick start example
### Matrix
```rust
fn main() {
let mat1 = Matrix::new([[1.0, 2.0], [3.0, 4.0]]);
let mat2 = Matrix::new([[5.0, 6.0], [7.0, 8.0]]);
let mat3 = mat1 + mat2;
println!("{}", mat3);
}
```
### Vector2/Vector3
```rust
fn main() {
let vec2 = Vector2::new(4.0, 3.5);
let vec3 = Vector3::new(5.5, 9.0, -8.0);
}
```
## Contributing
Contributions, issues, and feature requests are welcome! Feel free to check [issues page](https://github.com/Jodus-Melodus/minmath/issues).
## Adding `minmath` to dependencies
`minmath` currently has zero dependencies and I plan to keep it that way.
There are two ways to add the crate to your dependencies.
### Manual
Add the following to your `Cargo.toml` file.
```toml
[dependencies]
minmath = "*"
# Check https://crates.io/crates/minmath for the latest version
```
### Command Line
Run the following in your terminal.
```bash
cargo add minmath
```
## Structures and Features
- [Matrix](https://github.com/Jodus-Melodus/minmath/blob/master/docs/README_MATRIX.md)
- [Vector](https://github.com/Jodus-Melodus/minmath/blob/master/docs/README_VECTOR.md)
## License
This project is licensed under the MIT License. See [LICENSE](LICENSE.md) for details.
## Links
- [Crates.io](https://crates.io/crates/minmath)
- [Documentation (docs.rs)](https://docs.rs/minmath)
- [GitHub Repository](https://github.com/Jodus-Melodus/minmath)