Ejemplo n.º 1
0
 public static bool Contains(Bounds2D bounds, float2[] positions)
 => Contains(bounds, new NativeArray <float2>(positions, Allocator.Temp));
Ejemplo n.º 2
0
 public static bool Contains(Bounds2D bounds, float2 position)
 => position.x > bounds.Center.x - bounds.Extents.x && position.y > bounds.Center.y - bounds.Extents.y &&
 position.x < bounds.Center.x + bounds.Extents.x && position.y < bounds.Center.y + bounds.Extents.y;
Ejemplo n.º 3
0
 public Branch(Bounds2D bounds)
 {
     this.bounds     = bounds;
     isLeaf          = false;
     ChildStartIndex = 0;
 }