private float distanceToCam(Geometry spat){ // NOTE: It is best to check the distance // to the bound's closest edge vs. the bound's center here. return spat.getWorldBound().distanceToEdge(cam.getLocation()); }
private float distanceToCam(Geometry spat){ // NOTE: It is best to check the distance // to the bound's closest edge vs. the bound's center here. return spat.getWorldBound().distanceToEdge(cam.getLocation()); }
private float distanceToCam(Geometry spat){ // NOTE: It is best to check the distance // to the bound's closest edge vs. the bound's center here. return spat.getWorldBound().distanceToEdge(cam.getLocation()); }