C# Class BEPUphysics.BroadPhaseSystems.SortAndSweep.SortAndSweep1D

Simple and standard implementation of the one-axis sort and sweep (sweep and prune) algorithm.
In small scenarios, it can be the quickest option. It uses very little memory. However, it tends to scale poorly relative to other options and can slow down significantly when entries cluster along the axis. Additionally, it supports no queries at all.
Inheritance: BroadPhase
ファイルを表示 Open project: Indiefreaks/igf Class Usage Examples

Public Methods

Method Description
Add ( BroadPhaseEntry entry ) : void

Adds an entry to the broad phase.

MergeSections ( int a, int b ) : void
Remove ( BroadPhaseEntry entry ) : void

Removes an entry from the broad phase.

SortAndSweep1D ( ) : System

Constructs a new sort and sweep broad phase.

SortAndSweep1D ( IThreadManager threadManager ) : System

Constructs a new sort and sweep broad phase.

SortSection ( int section ) : void
Sweep ( int segment ) : void

Protected Methods

Method Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Method Details

Add() public method

Adds an entry to the broad phase.
public Add ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to add.
return void

MergeSections() public method

public MergeSections ( int a, int b ) : void
a int
b int
return void

Remove() public method

Removes an entry from the broad phase.
public Remove ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to remove.
return void

SortAndSweep1D() public method

Constructs a new sort and sweep broad phase.
public SortAndSweep1D ( ) : System
return System

SortAndSweep1D() public method

Constructs a new sort and sweep broad phase.
public SortAndSweep1D ( IThreadManager threadManager ) : System
threadManager IThreadManager Thread manager to use in the broad phase.
return System

SortSection() public method

public SortSection ( int section ) : void
section int
return void

Sweep() public method

public Sweep ( int segment ) : void
segment int
return void

UpdateMultithreaded() protected method

protected UpdateMultithreaded ( ) : void
return void

UpdateSingleThreaded() protected method

protected UpdateSingleThreaded ( ) : void
return void