Skip to content

Commit

Permalink
Typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
S-AT committed Aug 31, 2020
1 parent 5941244 commit 493fa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vector3d.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Vector3d {
* const v = new Vector3d(0.267, 0.535, 0.802);
*/
constructor(x, y, z) {
if (isNaN(x) || isNaN(x) || isNaN(x)) throw new TypeError(`invalid vector [${x},${y},${z}]`);
if (isNaN(x) || isNaN(y) || isNaN(z)) throw new TypeError(`invalid vector [${x},${y},${z}]`);

this.x = Number(x);
this.y = Number(y);
Expand Down

0 comments on commit 493fa39

Please sign in to comment.