/// <summary> /// Returns a mapped point or creates and adds one /// </summary> private PathPoint OpenPoint(int par1, int par2, int par3) { int i = PathPoint.MakeHash(par1, par2, par3); PathPoint pathpoint = (PathPoint)PointMap.Lookup(i); if (pathpoint == null) { pathpoint = new PathPoint(par1, par2, par3); PointMap.AddKey(i, pathpoint); } return(pathpoint); }