Skip to content

Commit 84cfd55

Browse files
committed
intersectsPlane returns PVector
1 parent e13dc62 commit 84cfd55

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

core/src/processing/core/PApplet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2509,7 +2509,7 @@ public boolean intersectsBox(float w, float h, float d, PVector origin, PVector
25092509
}
25102510

25112511

2512-
public boolean intersectsPlane(PVector origin, PVector dir) {
2512+
public PVector intersectsPlane(PVector origin, PVector dir) {
25132513
return g.intersectsPlane(origin, dir);
25142514
}
25152515

core/src/processing/core/PGraphics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4393,9 +4393,9 @@ public boolean intersectsBox(float w, float h, float d, PVector origin, PVector
43934393
}
43944394

43954395

4396-
public boolean intersectsPlane(PVector origin, PVector dir) {
4396+
public PVector intersectsPlane(PVector origin, PVector dir) {
43974397
showMissingWarning("intersectsPlane");
4398-
return false;
4398+
return null;
43994399
}
44004400

44014401

mode/libraries/vr/src/processing/vr/VRCamera.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void noSticky() {
4747
}
4848

4949
public void setPosition(float x, float y, float z) {
50-
50+
graphics.translate(-x, -y, -z);
5151
}
5252

5353
public void setNear(float near) {

mode/libraries/vr/src/processing/vr/VRGraphics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ public boolean intersectsBox(float w, float h, float d, PVector origin, PVector
147147

148148

149149
@Override
150-
public boolean intersectsPlane(PVector origin, PVector dir) {
150+
public PVector intersectsPlane(PVector origin, PVector dir) {
151151
showMissingWarning("intersectsPlane");
152-
return false;
152+
return null;
153153
}
154154

155155

0 commit comments

Comments
 (0)