Exemplo n.º 1
0
 /** Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds. */
 public bool AabbIntersectsSkeleton(SkeletonBounds bounds)
 {
     if (!aabb)
     {
         aabbCompute();
     }
     if (!bounds.aabb)
     {
         bounds.aabbCompute();
     }
     return(minX < bounds.maxX && maxX > bounds.minX && minY < bounds.maxY && maxY > bounds.minY);
 }
Exemplo n.º 2
0
 /** Returns true if the axis aligned bounding box intersects the axis aligned bounding box of the specified bounds. */
 public bool AabbIntersectsSkeleton(SkeletonBounds bounds)
 {
     if (!aabb) aabbCompute();
     if (!bounds.aabb) bounds.aabbCompute();
     return minX < bounds.maxX && maxX > bounds.minX && minY < bounds.maxY && maxY > bounds.minY;
 }