euclid
This is a small library for geometric types with a focus on 2d graphics and layout.
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up…orm-2d-methods, r=nical Allow building non-`Trig` transforms that don't rotate The `Trig` trait bound is only required for doing rotations, and also `Trig` is only implemented for `f64` and `f32`. Putting the `Trig` trait bound on the main `impl` for `Transform2D` methods was a pretty restrictive and applied restrictions more often than was needed. This commit moves the `Trig` trait bound to an `impl` specifically for rotation-related methods of `Transform2D`, and the result is that we can now scale or translate things represented with `i32` or `i64` or other non-`Trig` scalars. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/euclid/367) <!-- Reviewable:end -->
| Type | Name | Latest commit message | Commit time |
|---|---|---|---|
| Failed to load latest commit information. | |||
|
|
src |
|
|
|
|
.gitignore |
|
|
|
|
.travis.yml |
|
|
|
|
COPYRIGHT |
|
|
|
|
Cargo.toml |
|
|
|
|
LICENSE-APACHE |
|
|
|
|
LICENSE-MIT |
|
|
|
|
README.md |
|
|
This is a small library for geometric types with a focus on 2d graphics and layout.