Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add way to get coefficients from Affine #9

Merged
merged 2 commits into from
Jan 11, 2019
Merged

Add way to get coefficients from Affine #9

merged 2 commits into from
Jan 11, 2019

Conversation

raphlinus
Copy link
Contributor

Add as_coeffs method to Affine so we can get the coefficients out
(necessary for conversion to Direct2D types, etc).

Also tweak documentation to explain the convention for rotation
(partially addressing #4) and the augmented matrix representation of
Affine, particularly that it's backwards from PostScript.

This doesn't address all of #4, it doesn't change any behavior.

Add `as_coeffs` method to Affine so we can get the coefficients out
(necessary for conversion to Direct2D types, etc).

Also tweak documentation to explain the convention for rotation
(partially addressing #4) and the augmented matrix representation of
Affine, particularly that it's backwards from PostScript.

This doesn't address all of #4, it doesn't change any behavior.
@raphlinus
Copy link
Contributor Author

Ping @Connicpu for sanity-check regarding matrices. In particular, does the mint conversion (ColumnMatrix2x3) still make sense?

It tried to interpret the matrix in Affine::new as code.
@raphlinus raphlinus merged commit e682a1b into master Jan 11, 2019
@raphlinus raphlinus deleted the affine2 branch January 11, 2019 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant