Fix leaning marks placement for reversed k/F/P (#2150).

This commit is contained in:
be5invis 2024-01-03 19:11:15 -08:00
parent 4364beed2b
commit 4e9555b8fd
7 changed files with 43 additions and 79 deletions

View file

@ -80,6 +80,9 @@ export class Transform {
static isIdentity(tfm) {
return this.isTranslate(tfm) && tfm.x === 0 && tfm.y === 0;
}
static isPositive(tfm) {
return tfm.xx * tfm.yy - tfm.xy * tfm.yx > 0;
}
static Combine(...tfms) {
let z00 = new Vec2(0, 0);
let z10 = new Vec2(1, 0);