src/SpatialHash.cs
/// <summary>Query and return the items intersecting <paramref name="area"/></summary>
/// <param name="area">Area (rectangle)</param>
/// <param name="angle">Rotation (in radians) of <paramref name="area"/></param>
/// <param name="origin">Origin of <paramref name="area"/></param>
Query and return the items intersecting
Query and return the items intersecting
public IEnumerable<T> Query(Rectangle area, float angle, Vector2 origin) {
            area = Util.Rotate(area.Location.ToVector2(), area.Size.ToVector2(), angle, origin);
            foreach (var t in Query(area))
                yield return t;
        }
public IEnumerable < T > Query ( Rectangle area , float angle , Vector2 origin ) { area = Util . Rotate ( area . Location . ToVector2 ( ) , area . Size . ToVector2 ( ) , angle , origin ) ; foreach ( var t in Query ( area ) ) yield return t ; }
Query and return the items intersecting
Query and return the items intersecting
area
Rectangle
None
angle
float
Rotation (in radians) of
Rotation ( in radians ) of
origin
Vector2
None