diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:08:26 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-08 15:45:14 +0200 |
| commit | 712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 (patch) | |
| tree | f5d7ef4341a4728c980d020cc173fa6bb70feaff /src/geom/point.rs | |
| parent | 977ac77e6a3298be2644a8231e93acbef9f7f396 (diff) | |
Em units
Diffstat (limited to 'src/geom/point.rs')
| -rw-r--r-- | src/geom/point.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/geom/point.rs b/src/geom/point.rs index afce68ba..dd89fbf5 100644 --- a/src/geom/point.rs +++ b/src/geom/point.rs @@ -38,8 +38,8 @@ impl Point { /// Transform the point with the given transformation. pub fn transform(self, ts: Transform) -> Self { Self::new( - ts.sx.resolve(self.x) + ts.kx.resolve(self.y) + ts.tx, - ts.ky.resolve(self.x) + ts.sy.resolve(self.y) + ts.ty, + ts.sx.of(self.x) + ts.kx.of(self.y) + ts.tx, + ts.ky.of(self.x) + ts.sy.of(self.y) + ts.ty, ) } } |
