affine-rs 0.1.0

Two-dimensional affine transformations for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# affine-rs

`affine-rs` is a dependency-free Rust library for two-dimensional affine
transformations. It is a Rust-native rewrite of the mathematical core of
[affine-py](https://github.com/rasterio/affine).

```rust
use affine_rs::Affine;

let transform = Affine::translation(10.0, 20.0)
    .compose(Affine::scale(2.0, 2.0));
let point = transform.transform_point([3.0, 4.0]);

assert_eq!(point, [16.0, 28.0]);
```