C# Class SpaceSim.Physics.GravitationalBodyIterator

显示文件 Open project: zlynn1990/SpaceSim

Public Methods

Method Description
Next ( int currentIndex, IList bodies ) : int
Prev ( int currentIndex, IList bodies ) : int

Private Methods

Method Description
Compare ( int>.Tuple one, int>.Tuple two ) : int
GetConnectedBodies ( int currentIndex, IList bodies ) : HashSet
GetParentIndex ( int targetIndex, IList bodies ) : int
GetSortedBodyDistances ( int currentIndex, IList bodies ) : int>>.List

Method Details

Next() public static method

public static Next ( int currentIndex, IList bodies ) : int
currentIndex int
bodies IList
return int

Prev() public static method

public static Prev ( int currentIndex, IList bodies ) : int
currentIndex int
bodies IList
return int