コード例 #1
0
        // 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));
        }
コード例 #2
0
 // constructor
 public TokenType(ContentType parentObject, LocalityQueryProximityDatabase <ContentType> lqsd)
 {
     proxy = new LocalityQueryDB.ClientProxy(parentObject);
     lq    = lqsd.lq;
 }