bump deps and more cleanup
This commit is contained in:
parent
f72b039ec4
commit
6e79c9e5c7
53 changed files with 440 additions and 638 deletions
|
@ -61,11 +61,7 @@ export class Point {
|
|||
return Point.transformedXY(tfm, z.type, z.x, z.y);
|
||||
}
|
||||
static transformedXY(tfm, type, x, y) {
|
||||
return new Point(
|
||||
type,
|
||||
x * tfm.xx + y * tfm.yx + tfm.x || 0,
|
||||
x * tfm.xy + y * tfm.yy + tfm.y || 0
|
||||
);
|
||||
return new Point(type, tfm.applyX(x, y), tfm.applyY(x, y));
|
||||
}
|
||||
static translated(z, dx, dy) {
|
||||
return new Point(z.type, z.x + dx || 0, z.y + dy || 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue