C# Class UQtAlgo, uquadtree

Mostra file Open project: mc-gulu/uquadtree Class Usage Examples

Public Methods

Method Description
BuildRecursively ( UQtNode, node ) : void
FindLeafRecursively ( UQtNode, node, Vector2 point ) : UQtLeaf,
GenerateSwappingLeaves ( UQtNode, node, UQtLeaf, active, List holdingLeaves, List &inLeaves, List &outLeaves ) : void
Intersects ( Rect nodeBound, IQtUserData userData ) : bool
Intersects ( Rect nodeBound, Vector2 targetCenter, float targetRadius ) : bool
TraverseAllLeaves ( UQtNode, node, UQtForeachLeaf func ) : void

Private Methods

Method Description
GenerateLeavesByDist ( UQtNode, node, UQtLeaf, active, float dist, List &leaves ) : void

Method Details

BuildRecursively() public static method

public static BuildRecursively ( UQtNode, node ) : void
node UQtNode,
return void

FindLeafRecursively() public static method

public static FindLeafRecursively ( UQtNode, node, Vector2 point ) : UQtLeaf,
node UQtNode,
point Vector2
return UQtLeaf,

GenerateSwappingLeaves() public static method

public static GenerateSwappingLeaves ( UQtNode, node, UQtLeaf, active, List holdingLeaves, List &inLeaves, List &outLeaves ) : void
node UQtNode,
active UQtLeaf,
holdingLeaves List
inLeaves List
outLeaves List
return void

Intersects() public static method

public static Intersects ( Rect nodeBound, IQtUserData userData ) : bool
nodeBound Rect
userData IQtUserData
return bool

Intersects() public static method

public static Intersects ( Rect nodeBound, Vector2 targetCenter, float targetRadius ) : bool
nodeBound Rect
targetCenter Vector2
targetRadius float
return bool

TraverseAllLeaves() public static method

public static TraverseAllLeaves ( UQtNode, node, UQtForeachLeaf func ) : void
node UQtNode,
func UQtForeachLeaf
return void