Struct DynamicBVHNode<T>
A BVH node.
Inherited Members
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public struct DynamicBVHNode<T>
Type Parameters
Name | Description |
---|---|
T | The node type. |
Fields
AABB
Enlarged AABB.
Declaration
public BoundingBox AABB
Field Value
Type | Description |
---|---|
BoundingBox |
Child1
The first child.
Declaration
public int Child1
Field Value
Type | Description |
---|---|
int |
Child2
The second child.
Declaration
public int Child2
Field Value
Type | Description |
---|---|
int |
Height
leaf = 0, free node = -1.
Declaration
public int Height
Field Value
Type | Description |
---|---|
int |
ParentOrNext
The parent node index if this node is in use. If it is a free node, it refers to the next free node.
Declaration
public int ParentOrNext
Field Value
Type | Description |
---|---|
int |
UserData
The custom user data.
Declaration
public T UserData
Field Value
Type | Description |
---|---|
T |
Methods
IsLeaf()
Gets a value indicating whether this node is a leaf.
Declaration
public bool IsLeaf()
Returns
Type | Description |
---|---|
bool | If is a leaf. |