Represents a spatial partition that internally uses two spatial partitions to manage items:
one for static/sleeping items and one for dynamic items.
Namespace: DigitalRune.Geometry.PartitioningAssembly: DigitalRune.Geometry (in DigitalRune.Geometry.dll) Version: 1.9.0.0 (1.9.3.9490)
Syntax
| C# |
|---|
public class DualPartition<T> : BasePartition<T>, ISupportBroadPhase<T>, ISupportFrustumCulling<T> |
| Visual Basic |
|---|
Public Class DualPartition(Of T) _ Inherits BasePartition(Of T) _ Implements ISupportBroadPhase(Of T), ISupportFrustumCulling(Of T) |
| Visual C++ |
|---|
generic<typename T> public ref class DualPartition : public BasePartition<T>, ISupportBroadPhase<T>, ISupportFrustumCulling<T> |
Type Parameters
- T
- The type of item in the spatial partition.
Remarks
The DualPartition<(Of <(<'T>)>)> can be used as a broad-phase algorithm (see BroadPhase). It can in certain cases outperform the default SweepAndPruneSpace<(Of <(<'T>)>)>.
By default, two spatial partitions of type DynamicAabbTree<(Of <(<'T>)>)> are used (with settings optimized for the static and dynamic case).
Inheritance Hierarchy
System..::..Object
DigitalRune.Geometry.Partitioning..::..BasePartition<(Of <(<'T>)>)>
DigitalRune.Geometry.Partitioning..::..DualPartition<(Of <(<'T>)>)>
DigitalRune.Geometry.Partitioning..::..BasePartition<(Of <(<'T>)>)>
DigitalRune.Geometry.Partitioning..::..DualPartition<(Of <(<'T>)>)>