Table of Contents

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

parent int

The parent.

index int

The index.

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

parent int

The parent.

index int

The index.

bound BoundingBox

The bound.

Fields

Bound

public readonly BoundingBox Bound

Field Value

BoundingBox

Index

public readonly int Index

Field Value

int

Parent

public readonly int Parent

Field Value

int

Properties

ActiveNode

public readonly byte ActiveNode { get; }

Property Value

byte

Count

public int Count { get; }

Property Value

int

End

public int End { readonly get; set; }

Property Value

int

HasChildren

public bool HasChildren { get; }

Property Value

bool

IsBuilt

public bool IsBuilt { readonly get; set; }

Property Value

bool

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

this[int]

Gets or sets the int at the specified index.

public int this[int index] { get; set; }

Parameters

index int

The index.

Property Value

int

The int.

Start

public int Start { readonly get; set; }

Property Value

int

Methods

GetChildIndex(int)

Gets the index of the child.

public int GetChildIndex(int index)

Parameters

index int

The index.

Returns

int

HasChildAtIndex(int)

Determines whether [has child at index] [the specified index].

public bool HasChildAtIndex(int index)

Parameters

index int

The index.

Returns

bool

true if [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)

Parameters

index int

The index.

value int

The value.