Esempio n. 1
0
 public VisionData calc(
     VisionData cache,
     TileArrayIntersections<? extends Occluder> fixedOccludersTileArrayIntersections,
     List<? extends Occluder> movingOccluders) {
   KPolygon boundaryPolygon = cache.getBoundaryPolygon();
   ArrayList<? extends Occluder> fixedOccluders =
       fixedOccludersTileArrayIntersections.getAllWithin(
           boundaryPolygon.getCenter(), boundaryPolygon.getRadius());
   ArrayList<VPOccluderOccluderIntersection> fixedOccludersIntersectionPoints =
       fixedOccludersTileArrayIntersections.getIntersectionsWithinAtLeast(
           boundaryPolygon.getCenter(), boundaryPolygon.getRadius());
   return calc(cache, fixedOccluders, fixedOccludersIntersectionPoints, movingOccluders);
 }
Esempio n. 2
0
 public VisionData calc(
     Vector2f eye,
     KPolygon boundaryPolygon,
     TileArrayIntersections<? extends Occluder> fixedOccludersTileArrayIntersections,
     ArrayList<? extends Occluder> movingOccluders) {
   List<? extends Occluder> fixedOccluders =
       fixedOccludersTileArrayIntersections.getAllWithin(
           boundaryPolygon.getCenter(), boundaryPolygon.getRadius());
   List<VPOccluderOccluderIntersection> fixedOccludersIntersectionPoints =
       fixedOccludersTileArrayIntersections.getIntersectionsWithinAtLeast(
           boundaryPolygon.getCenter(), boundaryPolygon.getRadius());
   return calc(
       eye, boundaryPolygon, fixedOccluders, fixedOccludersIntersectionPoints, movingOccluders);
 }