if (getParent() == null || (getParent().getType() & Spatial.TERRAIN_PAGE) != 0) return null;  TerrainPage pPage = (TerrainPage)getParent();  if (quadrant == 1) return pPage.getPage(2); else if (quadrant == 3) return pPage.getPage(4); else if (quadrant == 2) { TerrainPage tp = pPage._findDownPage(); if (tp != null) return tp.getPage(1); } else if (quadrant == 4) { TerrainPage tp = pPage._findDownPage(); if (tp != null) return tp.getPage(3); }
if (getParent() == null || (getParent().getType() & Spatial.TERRAIN_PAGE) != 0) return null;
    private TerrainPage _findDownPage() {        if (getParent() == null || (getParent().getType() & Spatial.TERRAIN_PAGE) != 0) return null;                TerrainPage pPage = (TerrainPage)getParent();                if (quadrant == 1)            return pPage.getPage(2);        else if (quadrant == 3)            return pPage.getPage(4);        else if (quadrant == 2) {            TerrainPage tp = pPage._findDownPage();            if (tp != null)                return tp.getPage(1);        } else if (quadrant == 4) {            TerrainPage tp = pPage._findDownPage();            if (tp != null)                return tp.getPage(3);        }        return null;    }