コード例 #1
0
 public void Dispose()
 {
     if (poolCluster != null)
     {
         poolCluster.Dispose();
         poolCluster = null;
     }
 }
コード例 #2
0
 public PositionCluster3D(Data data)
 {
     this.data      = data;
     points         = new Queue <Point> ();
     clusters       = new List <Cluster> ();
     clusterAdded   = new List <Cluster>();
     clusterRemoved = new List <Cluster>();
     poolCluster    = new Pooling.MemoryPool <Cluster>(
         () => new Cluster(),
         c => c.Reset(),
         c => { });
 }