Skip to content

Commit 50544b6

Browse files
committed
Updated builds.
1 parent 6f4da77 commit 50544b6

File tree

5 files changed

+221
-34
lines changed

5 files changed

+221
-34
lines changed

build/three.cjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4850,9 +4850,9 @@ class Box3 {
48504850

48514851
containsPoint( point ) {
48524852

4853-
return point.x < this.min.x || point.x > this.max.x ||
4854-
point.y < this.min.y || point.y > this.max.y ||
4855-
point.z < this.min.z || point.z > this.max.z ? false : true;
4853+
return point.x >= this.min.x && point.x <= this.max.x &&
4854+
point.y >= this.min.y && point.y <= this.max.y &&
4855+
point.z >= this.min.z && point.z <= this.max.z;
48564856

48574857
}
48584858

@@ -4880,9 +4880,9 @@ class Box3 {
48804880
intersectsBox( box ) {
48814881

48824882
// using 6 splitting planes to rule out intersections.
4883-
return box.max.x < this.min.x || box.min.x > this.max.x ||
4884-
box.max.y < this.min.y || box.min.y > this.max.y ||
4885-
box.max.z < this.min.z || box.min.z > this.max.z ? false : true;
4883+
return box.max.x >= this.min.x && box.min.x <= this.max.x &&
4884+
box.max.y >= this.min.y && box.min.y <= this.max.y &&
4885+
box.max.z >= this.min.z && box.min.z <= this.max.z;
48864886

48874887
}
48884888

@@ -51952,8 +51952,8 @@ class Box2 {
5195251952

5195351953
containsPoint( point ) {
5195451954

51955-
return point.x < this.min.x || point.x > this.max.x ||
51956-
point.y < this.min.y || point.y > this.max.y ? false : true;
51955+
return point.x >= this.min.x && point.x <= this.max.x &&
51956+
point.y >= this.min.y && point.y <= this.max.y;
5195751957

5195851958
}
5195951959

@@ -51980,8 +51980,8 @@ class Box2 {
5198051980

5198151981
// using 4 splitting planes to rule out intersections
5198251982

51983-
return box.max.x < this.min.x || box.min.x > this.max.x ||
51984-
box.max.y < this.min.y || box.min.y > this.max.y ? false : true;
51983+
return box.max.x >= this.min.x && box.min.x <= this.max.x &&
51984+
box.max.y >= this.min.y && box.min.y <= this.max.y;
5198551985

5198651986
}
5198751987

build/three.module.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4848,9 +4848,9 @@ class Box3 {
48484848

48494849
containsPoint( point ) {
48504850

4851-
return point.x < this.min.x || point.x > this.max.x ||
4852-
point.y < this.min.y || point.y > this.max.y ||
4853-
point.z < this.min.z || point.z > this.max.z ? false : true;
4851+
return point.x >= this.min.x && point.x <= this.max.x &&
4852+
point.y >= this.min.y && point.y <= this.max.y &&
4853+
point.z >= this.min.z && point.z <= this.max.z;
48544854

48554855
}
48564856

@@ -4878,9 +4878,9 @@ class Box3 {
48784878
intersectsBox( box ) {
48794879

48804880
// using 6 splitting planes to rule out intersections.
4881-
return box.max.x < this.min.x || box.min.x > this.max.x ||
4882-
box.max.y < this.min.y || box.min.y > this.max.y ||
4883-
box.max.z < this.min.z || box.min.z > this.max.z ? false : true;
4881+
return box.max.x >= this.min.x && box.min.x <= this.max.x &&
4882+
box.max.y >= this.min.y && box.min.y <= this.max.y &&
4883+
box.max.z >= this.min.z && box.min.z <= this.max.z;
48844884

48854885
}
48864886

@@ -51950,8 +51950,8 @@ class Box2 {
5195051950

5195151951
containsPoint( point ) {
5195251952

51953-
return point.x < this.min.x || point.x > this.max.x ||
51954-
point.y < this.min.y || point.y > this.max.y ? false : true;
51953+
return point.x >= this.min.x && point.x <= this.max.x &&
51954+
point.y >= this.min.y && point.y <= this.max.y;
5195551955

5195651956
}
5195751957

@@ -51978,8 +51978,8 @@ class Box2 {
5197851978

5197951979
// using 4 splitting planes to rule out intersections
5198051980

51981-
return box.max.x < this.min.x || box.min.x > this.max.x ||
51982-
box.max.y < this.min.y || box.min.y > this.max.y ? false : true;
51981+
return box.max.x >= this.min.x && box.min.x <= this.max.x &&
51982+
box.max.y >= this.min.y && box.min.y <= this.max.y;
5198351983

5198451984
}
5198551985

build/three.module.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)