C# Класс 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.
Наследование: BroadPhase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
UpdateMultithreaded ( ) : void
UpdateSingleThreaded ( ) : void

Описание методов

Add() публичный Метод

Adds an entry to the broad phase.
public Add ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to add.
Результат void

MergeSections() публичный Метод

public MergeSections ( int a, int b ) : void
a int
b int
Результат void

Remove() публичный Метод

Removes an entry from the broad phase.
public Remove ( BroadPhaseEntry entry ) : void
entry BEPUphysics.BroadPhaseEntries.BroadPhaseEntry Entry to remove.
Результат void

SortAndSweep1D() публичный Метод

Constructs a new sort and sweep broad phase.
public SortAndSweep1D ( ) : System
Результат System

SortAndSweep1D() публичный Метод

Constructs a new sort and sweep broad phase.
public SortAndSweep1D ( IThreadManager threadManager ) : System
threadManager IThreadManager Thread manager to use in the broad phase.
Результат System

SortSection() публичный Метод

public SortSection ( int section ) : void
section int
Результат void

Sweep() публичный Метод

public Sweep ( int segment ) : void
segment int
Результат void

UpdateMultithreaded() защищенный Метод

protected UpdateMultithreaded ( ) : void
Результат void

UpdateSingleThreaded() защищенный Метод

protected UpdateSingleThreaded ( ) : void
Результат void