Click or drag to resize
DigitalRuneSimulationIslandManagerIComparerSimulationIslandCompare Method
Compares two islands by size.

Namespace: DigitalRune.Physics
Assembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax
int IComparer<SimulationIsland>.Compare(
	SimulationIsland first,
	SimulationIsland second
)

Parameters

first
Type: DigitalRune.PhysicsSimulationIsland
The first island.
second
Type: DigitalRune.PhysicsSimulationIsland
The second island.

Return Value

Type: Int32
A signed integer that indicates the relative size of the simulation islands, as shown in the following table.
ValueMeaning
Less than zeroThe first island is bigger than the second island.
ZeroThe first and the second island are equal in size.
Greater than zeroThe second island is bigger than the first.

Implements

IComparerTCompare(T, T)
See Also