Skip to content

Commit

Permalink
fix: min/max setting in accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Shimada committed Dec 25, 2022
1 parent e4f78e4 commit 1a5dd3f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/foundation/memory/Accessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,19 +102,19 @@ export class Accessor {

if (Is.exist(max)) {
this.__max.setComponents(
max[0] || -Number.MAX_VALUE,
max[1] || -Number.MAX_VALUE,
max[2] || -Number.MAX_VALUE,
max[3] || -Number.MAX_VALUE
max[0] ?? -Number.MAX_VALUE,
max[1] ?? -Number.MAX_VALUE,
max[2] ?? -Number.MAX_VALUE,
max[3] ?? -Number.MAX_VALUE
);
}

if (Is.exist(min)) {
this.__min.setComponents(
min[0] || Number.MAX_VALUE,
min[1] || Number.MAX_VALUE,
min[2] || Number.MAX_VALUE,
min[3] || Number.MAX_VALUE
min[0] ?? Number.MAX_VALUE,
min[1] ?? Number.MAX_VALUE,
min[2] ?? Number.MAX_VALUE,
min[3] ?? Number.MAX_VALUE
);
}

Expand Down

0 comments on commit 1a5dd3f

Please sign in to comment.