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
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 메소드들

메소드 설명
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