From 36c466d8953eb9fc8870fb19ad4b58897913b58e Mon Sep 17 00:00:00 2001 From: finscn Date: Tue, 19 Mar 2019 14:58:11 +0800 Subject: [PATCH] Flip Y , make the result be natural. --- src/proj2d/Projection2d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/proj2d/Projection2d.ts b/src/proj2d/Projection2d.ts index bb639c3..68fa01f 100644 --- a/src/proj2d/Projection2d.ts +++ b/src/proj2d/Projection2d.ts @@ -42,7 +42,7 @@ namespace pixi_projection { setAxisY(p: PointLike, factor: number = 1) { const x = p.x, y = p.y; - const d = Math.sqrt(x * x + y * y); + const d = -Math.sqrt(x * x + y * y); const mat3 = this.matrix.mat3; mat3[3] = x / d; mat3[4] = y / d;