From 04c764df5b7090fc58ed8d052f4d79407240742b Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Fri, 19 Apr 2024 04:11:07 -0400 Subject: [PATCH] Fix my mess --- source/utility/quaternion.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/utility/quaternion.ts b/source/utility/quaternion.ts index e1c87a48..ce0c9837 100644 --- a/source/utility/quaternion.ts +++ b/source/utility/quaternion.ts @@ -13,12 +13,12 @@ namespace utility { w: number = 1; constructor(vec: Vec3) { - let sx = Math.sin(vec.x * 0.5); - let cx = Math.cosFromSin(sx, vec.x * 0.5); - let sy = Math.sin(vec.y * 0.5); - let cy = Math.cosFromSin(sy, vec.y * 0.5); - let sz = Math.sin(vec.Z * 0.5); - let cz = Math.cosFromSin(sz, vec.Z * 0.5); + let sx = math.sin(vec.x * 0.5); + let cx = math.cosFromSin(sx, vec.x * 0.5); + let sy = math.sin(vec.y * 0.5); + let cy = math.cosFromSin(sy, vec.y * 0.5); + let sz = math.sin(vec.z * 0.5); + let cz = math.cosFromSin(sz, vec.z * 0.5); let cycz = cy * cz; let sysz = sy * sz;