bump deps and more cleanup

This commit is contained in:
be5invis 2024-03-04 01:14:45 -08:00
parent f72b039ec4
commit 6e79c9e5c7
53 changed files with 440 additions and 638 deletions

View file

@ -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);