public SetCenter ( int x, int y, int z ) : void | ||
x | int | |
y | int | |
z | int | |
return | void |
public void SetCenter(int x, int y, int z)
{
this.center = new Point(x, y, z);
}
private void SetCenterRandomlyForEmptyCluster(ClusterPrototype cluster) { if (cluster.PointCount == 0) { cluster.SetCenter(this.random.Next(0, this.size.Width - 1), this.random.Next(0, this.size.Height - 1), this.random.Next((int)this.zRange.Min, (int)this.zRange.Max)); } }