| SimulationIslandManagerIComparerSimulationIslandCompare Method |
Compares two islands by size.
Namespace: DigitalRune.PhysicsAssembly: DigitalRune.Physics (in DigitalRune.Physics.dll) Version: 1.10.0.0 (1.10.0.14427)
Syntax int IComparer<SimulationIsland>.Compare(
SimulationIsland first,
SimulationIsland second
)
Private Function Compare (
first As SimulationIsland,
second As SimulationIsland
) As Integer Implements IComparer(Of SimulationIsland).Compare
private:
virtual int Compare(
SimulationIsland^ first,
SimulationIsland^ second
) sealed = IComparer<SimulationIsland^>::Compare
private abstract Compare :
first : SimulationIsland *
second : SimulationIsland -> int
private override Compare :
first : SimulationIsland *
second : SimulationIsland -> int
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.
Value | Meaning |
---|
Less than zero | The first island is bigger than the second island. |
Zero | The first and the second island are equal in size. |
Greater than zero | The second island is bigger than the first. |
Implements
IComparerTCompare(T, T)See Also