Skip to content

Commit b512d81

Browse files
committed
fix(src): change zero to undefined
1 parent 98678e4 commit b512d81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/point.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function square(val) {
2525
}
2626

2727
class APoint {
28-
constructor(x = 0, y = 0) {
28+
constructor(x = undefined, y = undefined) {
2929
if (typeof x === 'function') {
3030
operatorCalc(x, (nx, ny) => {
3131
this[AXES] = [nx, ny];

src/vector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function square(val) {
2020
}
2121

2222
class AVector {
23-
constructor(x = 0, y = 0, z = 0) {
23+
constructor(x = undefined, y = undefined, z = undefined) {
2424
if (typeof x === 'function') {
2525
operatorCalc(x, (nx, ny, nz) => {
2626
this[AXES] = [nx, ny, nz];

0 commit comments

Comments
 (0)