Show / Hide Table of Contents

Class OctreeNode<T>

Inheritance
System.Object
OctreeNode<T>
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Namespace: Eco.Shared.Voxel
Assembly: Eco.Shared.dll
Syntax
public class OctreeNode<T> : Object, IEnumerable<T>, IEnumerable
Type Parameters
Name Description
T

Constructors

OctreeNode(WorldRange, Vector3i, T)

Declaration
public OctreeNode(WorldRange bounds, Vector3i pos, T obj)
Parameters
Type Name Description
WorldRange bounds
Vector3i pos
T obj

OctreeNode(WorldRange, Vector3i, OctreeNode<T>)

Declaration
public OctreeNode(WorldRange bounds, Vector3i pos, OctreeNode<T> child)
Parameters
Type Name Description
WorldRange bounds
Vector3i pos
OctreeNode<T> child

Properties

Bounds

Declaration
public WorldRange Bounds { get; }
Property Value
Type Description
WorldRange

Item[Vector3i]

Declaration
public T this[Vector3i pos] { get; }
Parameters
Type Name Description
Vector3i pos
Property Value
Type Description
T

Position

Declaration
public Vector3i Position { get; }
Property Value
Type Description
Vector3i

Methods

CollectAll(Queue<T>)

Declaration
public int CollectAll(Queue<T> buffer)
Parameters
Type Name Description
System.Collections.Generic.Queue<T> buffer
Returns
Type Description
System.Int32

CollectRange(WorldRange, Queue<T>)

Declaration
public int CollectRange(WorldRange range, Queue<T> buffer)
Parameters
Type Name Description
WorldRange range
System.Collections.Generic.Queue<T> buffer
Returns
Type Description
System.Int32

CollectRangeExclusiveOf(WorldRange, Queue<T>)

Declaration
public int CollectRangeExclusiveOf(WorldRange range, Queue<T> buffer)
Parameters
Type Name Description
WorldRange range
System.Collections.Generic.Queue<T> buffer
Returns
Type Description
System.Int32

ContainsPosition(Vector3i)

Declaration
public bool ContainsPosition(Vector3i pos)
Parameters
Type Name Description
Vector3i pos
Returns
Type Description
System.Boolean

GetEnumerator()

Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

GetRangeEnumerable(WorldRange)

Declaration
public IEnumerable<T> GetRangeEnumerable(WorldRange range)
Parameters
Type Name Description
WorldRange range
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

GetRangeExclusiveOfEnumerable(WorldRange)

Declaration
public IEnumerable<T> GetRangeExclusiveOfEnumerable(WorldRange range)
Parameters
Type Name Description
WorldRange range
Returns
Type Description
System.Collections.Generic.IEnumerable<T>

Set(Vector3i, T)

Set the value at the specified position.

Declaration
public bool Set(Vector3i pos, T obj)
Parameters
Type Name Description
Vector3i pos
T obj
Returns
Type Description
System.Boolean

True if a new value was added, false if a value was replaced.

TryGet(Vector3i, out T)

Declaration
public bool TryGet(Vector3i pos, out T obj)
Parameters
Type Name Description
Vector3i pos
T obj
Returns
Type Description
System.Boolean

Implements

System.Collections.Generic.IEnumerable<>
System.Collections.IEnumerable

Extension Methods

CommandLine.FeedFromCommandLine(Object)
CommandLine.ToCommandLineArgs(Object, Func<Object, Boolean>)
ListUtil.DepthFirstTraversal<T>(T, Func<T, IEnumerable<T>>)
EnumerableExtensions.SingleItemAsEnumerable<T>(T)
EventUtils.RaiseEvent<TEventArgs>(Object, String, TEventArgs)
PredicateUtils.MatchesAll<TEnumerable, T>(T, TEnumerable)
PredicateUtils.MatchesAll<T>(T, Func<T, Boolean>[])
PredicateUtils.MatchesAny<TEnumerable, T>(T, TEnumerable)
ReflectionUtils.PropertyValue<T>(Object, PropertyInfo)
ReflectionUtils.TryGetPropertyValueByName<T>(Object, String, out T)
ReflectionUtils.GetPropertyValueByName<T>(Object, String)
ReflectionUtils.SetPropertyByName(Object, String, Object)
ReflectionUtils.GetStructPropertyByName<T>(Object, String)
ReflectionUtils.GetStringPropertyByName(Object, String)
ReflectionUtils.ZipByProperty<T>(Object, Object, Object, Func<T, T, T>)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾