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 a method to transform a point and a rect via an affine transformation #58

Closed
wants to merge 1 commit into from

Conversation

@pcwalton
Copy link
Contributor

pcwalton commented Nov 28, 2014

r? @metajack (or whoever)

}

#[inline]
pub fn transform_rect(&self, rect: &Rect<T>) -> Rect<T> {

This comment has been minimized.

@SimonSapin

SimonSapin Nov 28, 2014

Member

What is the expected result for matrices with non-zero skews or rotation that are not multiples of 90°?

@pcwalton
Copy link
Contributor Author

pcwalton commented Nov 29, 2014

@SimonSapin Good point, this is totally broken. I have restructured my opacity PR in Servo to avoid using this function. Closing.

@pcwalton pcwalton closed this Nov 29, 2014
@pcwalton pcwalton deleted the pcwalton:transform-point branch Nov 29, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.