From 1fc99eb1a77e3c53c0192e0beda023c38763b0f8 Mon Sep 17 00:00:00 2001 From: ButzYung Date: Sun, 28 Mar 2021 18:56:32 +0800 Subject: [PATCH] cleanup --- src/faceall.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/faceall.ts b/src/faceall.ts index 0007c97b..424457c8 100644 --- a/src/faceall.ts +++ b/src/faceall.ts @@ -48,16 +48,16 @@ const calculateFaceAngle = (face, image_size): { pitch: number, yaw: number, row if (r10 < 1) { if (r10 > -1) { thetaZ = Math.asin(r10); - thetaY = Math.atan2(-r20, r00); + // thetaY = Math.atan2(-r20, r00); thetaX = Math.atan2(-r12, r11); } else { thetaZ = -pi / 2; - thetaY = -Math.atan2(r21, r22); + // thetaY = -Math.atan2(r21, r22); thetaX = 0; } } else { thetaZ = pi / 2; - thetaY = Math.atan2(r21, r22); + // thetaY = Math.atan2(r21, r22); thetaX = 0; }