From 9d48487f1ad8968ae7a587eb47b1708a4766a8cc Mon Sep 17 00:00:00 2001 From: Alex Denford SBL Date: Mon, 26 Feb 2024 13:29:12 -0800 Subject: [PATCH] Update vectorWrapper.test.ts --- libraries/math/src/vector3/vectorWrapper.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/math/src/vector3/vectorWrapper.test.ts b/libraries/math/src/vector3/vectorWrapper.test.ts index 1825e40..a0dba64 100644 --- a/libraries/math/src/vector3/vectorWrapper.test.ts +++ b/libraries/math/src/vector3/vectorWrapper.test.ts @@ -117,9 +117,10 @@ describe('Vector3Builder', () => { it('should be able to compute the distance between two vectors with the same result as the coreHelpers function', () => { const vectorA = new Vector3Builder(1, 2, 3); - const mag = Vector3Utils.magnitude(vectorA); + const vectorB = new Vector3Builder(4, 5, 6); + const mag = Vector3Utils.distance(vectorA, vectorB); - expect(vectorA.magnitude()).toEqual(mag); + expect(vectorA.distance(vectorB)).toEqual(mag); }); it('should be able to normalize the vector with the same result as the coreHelpers function', () => {