Skip to content

Commit 0e482ea

Browse files
committed
Fixed array size
1 parent 6394068 commit 0e482ea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mode/libraries/ar/src/processing/ar/ARGraphics.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,7 @@ protected HitResult getHitResult(int mx, int my) {
331331

332332
private boolean isPoseInsideAugmentedImage(Pose pose, AugmentedImage image) {
333333
// Get the four corners of the AugmentedImage's defining rectangle
334-
float[] corners = new float[8];
335-
image.getExtentX();
336-
image.getExtentZ();
334+
float[] corners = new float[16];
337335
image.getCenterPose().toMatrix(corners, 0);
338336

339337
// Define the vertices of the rectangle in 2D (assuming the image is flat on the XZ plane)

0 commit comments

Comments
 (0)