From 543327f2ed9f6a0ba2fb5b6205d3357c83a7870c Mon Sep 17 00:00:00 2001 From: Mike Date: Mon, 25 Mar 2024 09:25:45 -0700 Subject: [PATCH] fix the test assertion labels for vecX.setLength functions --- src/vec2-impl.ts | 2 +- src/vec3-impl.ts | 2 +- src/vec4-impl.ts | 2 +- test/tests/vec2-test.js | 2 +- test/tests/vec3-test.js | 2 +- test/tests/vec4-test.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/vec2-impl.ts b/src/vec2-impl.ts index 859375d..a195b4a 100644 --- a/src/vec2-impl.ts +++ b/src/vec2-impl.ts @@ -671,7 +671,7 @@ export function rotate(a: Vec2, b: Vec2, rad: number, dst?: Vec2) { /** * Treat a 2D vector as a direction and set it's length * - * @param a The vec2 to length + * @param a The vec2 to lengthen * @param len The length of the resulting vector * @returns The lengthened vector */ diff --git a/src/vec3-impl.ts b/src/vec3-impl.ts index 620057f..b584dbe 100644 --- a/src/vec3-impl.ts +++ b/src/vec3-impl.ts @@ -887,7 +887,7 @@ export function rotateZ(a: Vec3, b: Vec3, rad: number, dst?: Vec3) { /** * Treat a 3D vector as a direction and set it's length * - * @param a The vec3 to length + * @param a The vec3 to lengthen * @param len The length of the resulting vector * @returns The lengthened vector */ diff --git a/src/vec4-impl.ts b/src/vec4-impl.ts index 3c9dae9..aefa236 100644 --- a/src/vec4-impl.ts +++ b/src/vec4-impl.ts @@ -637,7 +637,7 @@ export function transformMat4(v: Vec4, m: Mat4, dst?: Vec4): Vec4 { /** * Treat a 4D vector as a direction and set it's length * - * @param a The vec3 to length + * @param a The vec3 to lengthen * @param len The length of the resulting vector * @returns The lengthened vector */ diff --git a/test/tests/vec2-test.js b/test/tests/vec2-test.js index b59d246..6ca981a 100644 --- a/test/tests/vec2-test.js +++ b/test/tests/vec2-test.js @@ -503,7 +503,7 @@ describe('vec2', () => { vecA = [1, 1]; result = vec2.setLength(vecA, 14.6); }); - it("should return the rotated vector", function () { + it("should return the lengthend vector", function () { assertEqualApproximately(result, [10.323759005323593, 10.323759005323593]); assertEqualApproximately(vec2.length(result), 14.6); }); diff --git a/test/tests/vec3-test.js b/test/tests/vec3-test.js index 1b24cda..6b51dd6 100644 --- a/test/tests/vec3-test.js +++ b/test/tests/vec3-test.js @@ -559,7 +559,7 @@ describe('vec3', () => { vecA = [1, 1, 1]; result = vec3.setLength(vecA, 14.6); }); - it("should return the rotated vector", function () { + it("should return the lengthened vector", function () { assertEqualApproximately(result, [8.429313930168536, 8.429313930168536, 8.429313930168536]); assertEqualApproximately(vec3.length(result), 14.6); }); diff --git a/test/tests/vec4-test.js b/test/tests/vec4-test.js index e2946c5..1a33f8d 100644 --- a/test/tests/vec4-test.js +++ b/test/tests/vec4-test.js @@ -412,7 +412,7 @@ describe('vec4', () => { vecA = [1, 1, 1, 1]; result = vec4.setLength(vecA, 14.6); }); - it("should return the rotated vector", function () { + it("should return the lengthened vector", function () { assertEqualApproximately(result, [7.3, 7.3, 7.3, 7.3]); assertEqualApproximately(vec4.length(result), 14.6); });