C# Class Nez.Spatial.IntIntDictionary

wraps a Unit32,List Dictionary. It's main purpose is to hash the int,int x,y coordinates into a single Uint32 key which hashes perfectly resulting in an O(1) lookup.
Datei anzeigen Open project: prime31/Nez

Public Methods

Method Description
clear ( ) : void

clears the backing dictionary

Private Methods

Method Description
add ( int x, int y, List list ) : void
getAllObjects ( ) : HashSet
getKey ( int x, int y ) : long
remove ( Collider obj ) : void
tryGetValue ( int x, int y, List &list ) : bool

Method Details

clear() public method

clears the backing dictionary
public clear ( ) : void
return void