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
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Method Details

Add() public méthode

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

MergeSections() public méthode

public MergeSections ( int a, int b ) : void
a int
b int
Résultat void

Remove() public méthode

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

SortAndSweep1D() public méthode

Constructs a new sort and sweep broad phase.
public SortAndSweep1D ( ) : System
Résultat System

SortAndSweep1D() public méthode

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

SortSection() public méthode

public SortSection ( int section ) : void
section int
Résultat void

Sweep() public méthode

public Sweep ( int segment ) : void
segment int
Résultat void

UpdateMultithreaded() protected méthode

protected UpdateMultithreaded ( ) : void
Résultat void

UpdateSingleThreaded() protected méthode

protected UpdateSingleThreaded ( ) : void
Résultat void