mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-11 05:05:23 +03:00
Merge pull request #696 from f3dm76/fix/vector-rotation
Fix #695: Wrong vector rotation
This commit is contained in:
commit
b07f097e49
@ -128,9 +128,9 @@ public final class Transform {
|
||||
}
|
||||
|
||||
public func apply(to: Point) -> Point {
|
||||
let x2 = m11 * to.x + m12 * to.x + dx
|
||||
let y2 = m21 * to.y + m22 * to.y + dy
|
||||
return Point(x: x2, y: y2)
|
||||
let x = m11 * to.x + m12 * to.y + dx
|
||||
let y = m21 * to.x + m22 * to.y + dy
|
||||
return Point(x: x, y: y)
|
||||
}
|
||||
|
||||
public func invert() -> Transform? {
|
||||
|
Loading…
Reference in New Issue
Block a user