C# Class Pathfinding.BBTree

Mostrar archivo Open project: henryj41043/TheUnseen Class Usage Examples

Public Properties

Property Type Description
graph INavmeshHolder
root BBTreeBox

Public Methods

Method Description
BBTree ( INavmeshHolder graph ) : System
ExpandToContain ( Rect r, Rect r2 ) : Rect
ExpansionRequired ( Rect r, Rect r2 ) : float
Insert ( Pathfinding.MeshNode node ) : void
NodeIntersectsCircle ( Pathfinding.MeshNode node, Vector3 p, float radius ) : bool
OnDrawGizmos ( ) : void
OnDrawGizmos ( BBTreeBox box ) : void
Query ( Vector3 p, NNConstraint constraint ) : NNInfo
QueryCircle ( Vector3 p, float radius, NNConstraint constraint ) : NNInfo
QueryClosest ( Vector3 p, NNConstraint constraint, float &distance ) : NNInfo
QueryClosest ( Vector3 p, NNConstraint constraint, float &distance, NNInfo previous ) : NNInfo
QueryClosestXZ ( Vector3 p, NNConstraint constraint, float &distance, NNInfo previous ) : NNInfo
QueryInside ( Vector3 p, NNConstraint constraint ) : MeshNode
RectArea ( Rect r ) : float
RectContains ( Rect r, Vector3 p ) : bool
RectIntersectsCircle ( Rect r, Vector3 p, float radius ) : bool
SearchBox ( BBTreeBox box, Vector3 p, NNConstraint constraint, NNInfo &nnInfo ) : void
SearchBoxCircle ( BBTreeBox box, Vector3 p, float radius, NNConstraint constraint, NNInfo &nnInfo ) : void
SearchBoxClosest ( BBTreeBox box, Vector3 p, float &closestDist, NNConstraint constraint, NNInfo &nnInfo ) : void
SearchBoxClosestXZ ( BBTreeBox box, Vector3 p, float &closestDist, NNConstraint constraint, NNInfo &nnInfo ) : void
SearchBoxInside ( BBTreeBox box, Vector3 p, NNConstraint constraint ) : MeshNode
TestIntersections ( BBTreeBox box, Vector3 p, float radius ) : void
TestIntersections ( Vector3 p, float radius ) : void
ToString ( ) : void

Method Details

BBTree() public method

public BBTree ( INavmeshHolder graph ) : System
graph INavmeshHolder
return System

ExpandToContain() public method

public ExpandToContain ( Rect r, Rect r2 ) : Rect
r UnityEngine.Rect
r2 UnityEngine.Rect
return UnityEngine.Rect

ExpansionRequired() public method

public ExpansionRequired ( Rect r, Rect r2 ) : float
r UnityEngine.Rect
r2 UnityEngine.Rect
return float

Insert() public method

public Insert ( Pathfinding.MeshNode node ) : void
node Pathfinding.MeshNode
return void

NodeIntersectsCircle() public method

public NodeIntersectsCircle ( Pathfinding.MeshNode node, Vector3 p, float radius ) : bool
node Pathfinding.MeshNode
p Vector3
radius float
return bool

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

OnDrawGizmos() public method

public OnDrawGizmos ( BBTreeBox box ) : void
box BBTreeBox
return void

Query() public method

public Query ( Vector3 p, NNConstraint constraint ) : NNInfo
p Vector3
constraint NNConstraint
return NNInfo

QueryCircle() public method

public QueryCircle ( Vector3 p, float radius, NNConstraint constraint ) : NNInfo
p Vector3
radius float
constraint NNConstraint
return NNInfo

QueryClosest() public method

public QueryClosest ( Vector3 p, NNConstraint constraint, float &distance ) : NNInfo
p Vector3
constraint NNConstraint
distance float
return NNInfo

QueryClosest() public method

public QueryClosest ( Vector3 p, NNConstraint constraint, float &distance, NNInfo previous ) : NNInfo
p Vector3
constraint NNConstraint
distance float
previous NNInfo
return NNInfo

QueryClosestXZ() public method

public QueryClosestXZ ( Vector3 p, NNConstraint constraint, float &distance, NNInfo previous ) : NNInfo
p Vector3
constraint NNConstraint
distance float
previous NNInfo
return NNInfo

QueryInside() public method

public QueryInside ( Vector3 p, NNConstraint constraint ) : MeshNode
p Vector3
constraint NNConstraint
return MeshNode

RectArea() public method

public RectArea ( Rect r ) : float
r Rect
return float

RectContains() public method

public RectContains ( Rect r, Vector3 p ) : bool
r Rect
p Vector3
return bool

RectIntersectsCircle() public method

public RectIntersectsCircle ( Rect r, Vector3 p, float radius ) : bool
r Rect
p Vector3
radius float
return bool

SearchBox() public method

public SearchBox ( BBTreeBox box, Vector3 p, NNConstraint constraint, NNInfo &nnInfo ) : void
box BBTreeBox
p Vector3
constraint NNConstraint
nnInfo NNInfo
return void

SearchBoxCircle() public method

public SearchBoxCircle ( BBTreeBox box, Vector3 p, float radius, NNConstraint constraint, NNInfo &nnInfo ) : void
box BBTreeBox
p Vector3
radius float
constraint NNConstraint
nnInfo NNInfo
return void

SearchBoxClosest() public method

public SearchBoxClosest ( BBTreeBox box, Vector3 p, float &closestDist, NNConstraint constraint, NNInfo &nnInfo ) : void
box BBTreeBox
p Vector3
closestDist float
constraint NNConstraint
nnInfo NNInfo
return void

SearchBoxClosestXZ() public method

public SearchBoxClosestXZ ( BBTreeBox box, Vector3 p, float &closestDist, NNConstraint constraint, NNInfo &nnInfo ) : void
box BBTreeBox
p Vector3
closestDist float
constraint NNConstraint
nnInfo NNInfo
return void

SearchBoxInside() public method

public SearchBoxInside ( BBTreeBox box, Vector3 p, NNConstraint constraint ) : MeshNode
box BBTreeBox
p Vector3
constraint NNConstraint
return MeshNode

TestIntersections() public method

public TestIntersections ( BBTreeBox box, Vector3 p, float radius ) : void
box BBTreeBox
p Vector3
radius float
return void

TestIntersections() public method

public TestIntersections ( Vector3 p, float radius ) : void
p Vector3
radius float
return void

ToString() public method

public ToString ( ) : void
return void

Property Details

graph public_oe property

public INavmeshHolder graph
return INavmeshHolder

root public_oe property

public BBTreeBox root
return BBTreeBox