C# Class FSO.Common.Model.IntersectRectTree

A k-d Tree for looking up rectangle intersections TODO: balancing? could make performance gains more stable at the cost of some of the worst case.
Show file Open project: RHY3756547/FreeSO Class Usage Examples

Public Properties

Property Type Description
Root IntersectRectNode

Public Methods

Method Description
Add ( Rectangle rect ) : void
SearchForIntersect ( Rectangle rect ) : bool

Method Details

Add() public method

public Add ( Rectangle rect ) : void
rect Microsoft.Xna.Framework.Rectangle
return void

SearchForIntersect() public method

public SearchForIntersect ( Rectangle rect ) : bool
rect Microsoft.Xna.Framework.Rectangle
return bool

Property Details

Root public property

public IntersectRectNode,FSO.Common.Model Root
return IntersectRectNode