Skip to content

Commit

Permalink
Update vectorWrapper.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDenfordSkyboxLabs committed Feb 26, 2024
1 parent ded09ea commit 9d48487
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/math/src/vector3/vectorWrapper.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 9d48487

Please sign in to comment.