package com.adjl.firstpersoncamera;

import processing.core.PApplet;
import processing.core.PVector;

class Room implements World {

    private final PApplet mSketch;
    private final float mWidth;
    private final float mHeight;
    private final float mDepth;

    Room(PApplet sketch) {
        mSketch = sketch;
        mWidth = 200.0f;
        mHeight = 100.0f;
        mDepth = 200.0f;
    }

    @Override
    public boolean contains(PVector position) {
        return (position.x >= -mWidth / 2) && (position.x < mWidth / 2) && (position.y >= 0)
                && (position.y < mHeight) && (position.z >= -mDepth / 2)
                && (position.z < mDepth / 2);
    }

    @Override
    public void draw() {
        mSketch.pushMatrix();
        mSketch.translate(0, -mHeight / 2, 0);
        mSketch.box(mWidth, mHeight, mDepth);
        mSketch.popMatrix();
    }
}

@@ -490,32 +490,35 @@
 x %3E= -mWidth / 2
+.0f
 ) && (position.x
@@ -530,17 +530,36 @@
 idth / 2
-)
+.0f)%0A               
  && (pos
@@ -570,33 +570,20 @@
 n.y %3E= 0
-)%0A               
+.0f)
  && (pos
@@ -630,16 +630,19 @@
 epth / 2
+.0f
 )%0A      
@@ -678,16 +678,19 @@
 epth / 2
+.0f
 );%0A    %7D
@@ -787,16 +787,19 @@
 nslate(0
+.0f
 , -mHeig
@@ -808,11 +808,17 @@
  / 2
-, 0
+.0f, 0.0f
 );%0A 

Declare literal floats