Skip to content

Commit 543327f

Browse files
committed
fix the test assertion labels for vecX.setLength functions
1 parent 6525ae2 commit 543327f

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/vec2-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@ export function rotate(a: Vec2, b: Vec2, rad: number, dst?: Vec2) {
671671
/**
672672
* Treat a 2D vector as a direction and set it's length
673673
*
674-
* @param a The vec2 to length
674+
* @param a The vec2 to lengthen
675675
* @param len The length of the resulting vector
676676
* @returns The lengthened vector
677677
*/

src/vec3-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ export function rotateZ(a: Vec3, b: Vec3, rad: number, dst?: Vec3) {
887887
/**
888888
* Treat a 3D vector as a direction and set it's length
889889
*
890-
* @param a The vec3 to length
890+
* @param a The vec3 to lengthen
891891
* @param len The length of the resulting vector
892892
* @returns The lengthened vector
893893
*/

src/vec4-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export function transformMat4(v: Vec4, m: Mat4, dst?: Vec4): Vec4 {
637637
/**
638638
* Treat a 4D vector as a direction and set it's length
639639
*
640-
* @param a The vec3 to length
640+
* @param a The vec3 to lengthen
641641
* @param len The length of the resulting vector
642642
* @returns The lengthened vector
643643
*/

test/tests/vec2-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ describe('vec2', () => {
503503
vecA = [1, 1];
504504
result = vec2.setLength(vecA, 14.6);
505505
});
506-
it("should return the rotated vector", function () {
506+
it("should return the lengthend vector", function () {
507507
assertEqualApproximately(result, [10.323759005323593, 10.323759005323593]);
508508
assertEqualApproximately(vec2.length(result), 14.6);
509509
});

test/tests/vec3-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ describe('vec3', () => {
559559
vecA = [1, 1, 1];
560560
result = vec3.setLength(vecA, 14.6);
561561
});
562-
it("should return the rotated vector", function () {
562+
it("should return the lengthened vector", function () {
563563
assertEqualApproximately(result, [8.429313930168536, 8.429313930168536, 8.429313930168536]);
564564
assertEqualApproximately(vec3.length(result), 14.6);
565565
});

test/tests/vec4-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ describe('vec4', () => {
412412
vecA = [1, 1, 1, 1];
413413
result = vec4.setLength(vecA, 14.6);
414414
});
415-
it("should return the rotated vector", function () {
415+
it("should return the lengthened vector", function () {
416416
assertEqualApproximately(result, [7.3, 7.3, 7.3, 7.3]);
417417
assertEqualApproximately(vec4.length(result), 14.6);
418418
});

0 commit comments

Comments
 (0)