Struct StaticOctree<T>.Octant
- Namespace
- HelixToolkit.SharpDX.Utilities
- Assembly
- HelixToolkit.SharpDX.dll
Octant structure, size = 80 bytes
protected struct StaticOctree<T>.Octant
- Inherited Members
- Extension Methods
Constructors
Octant(int, int)
Initializes a new instance of the StaticOctree<T>.Octant struct.
public Octant(int parent, int index)
Parameters
Octant(int, int, ref BoundingBox)
Initializes a new instance of the StaticOctree<T>.Octant struct.
public Octant(int parent, int index, ref BoundingBox bound)
Parameters
parentintThe parent.
indexintThe index.
boundBoundingBoxThe bound.
Fields
Bound
public readonly BoundingBox Bound
Field Value
Index
public readonly int Index
Field Value
Parent
public readonly int Parent
Field Value
Properties
ActiveNode
public readonly byte ActiveNode { get; }
Property Value
Count
public int Count { get; }
Property Value
End
public int End { readonly get; set; }
Property Value
HasChildren
public bool HasChildren { get; }
Property Value
IsBuilt
public bool IsBuilt { readonly get; set; }
Property Value
IsEmpty
public bool IsEmpty { get; }
Property Value
this[int]
Gets or sets the int at the specified index.
public int this[int index] { get; set; }
Parameters
indexintThe index.
Property Value
Start
public int Start { readonly get; set; }
Property Value
Methods
GetChildIndex(int)
Gets the index of the child.
public int GetChildIndex(int index)
Parameters
indexintThe index.
Returns
HasChildAtIndex(int)
Determines whether [has child at index] [the specified index].
public bool HasChildAtIndex(int index)
Parameters
indexintThe index.
Returns
- bool
trueif [has child at index] [the specified index]; otherwise,false.
SetChildIndex(int, int)
Sets the index of the child.
public void SetChildIndex(int index, int value)