// constructor public LocalityQueryProximityDatabase(Vector3 center, Vector3 dimensions, Vector3 divisions) { Vector3 halfsize = dimensions * 0.5f; Vector3 origin = center - halfsize; lq = new LocalityQueryDB(origin, dimensions, (int)Math.Round(divisions.X), (int)Math.Round(divisions.Y), (int)Math.Round(divisions.Z)); }
// constructor public TokenType(ContentType parentObject, LocalityQueryProximityDatabase <ContentType> lqsd) { proxy = new LocalityQueryDB.ClientProxy(parentObject); lq = lqsd.lq; }