ComputeCenterPoint() public method

Computes the center point based on the bounds of the tile positions.
public ComputeCenterPoint ( ) : IEnumerator
return IEnumerator
	/// <summary>
	/// Configure modifications then call base implementation. 
	/// </summary>
	/// <param name='selection'>
	/// The selection to which the action should be applied.
	/// </param>
	public override void DoIt(object selection)
	{
		ResourceTileSelection sel = (ResourceTileSelection)selection;
		// initialize as a clearcut
		Harvest harvest = new Harvest(
			sel.ToArray(), m_duration
		);
		switch (m_cutType) {
		case CutType.DiameterLimitCut:
			harvest = new Harvest(
				sel.ToArray(), m_duration,
				m_diameterLimit, m_diameterLimitDirection
			);
			break;
		case CutType.QRatioCut:
			harvest = new Harvest(
				sel.ToArray(), m_duration,
				m_qRatio, m_basalArea
			);
			break;
		}
		StartCoroutine(harvest.ComputeCenterPoint()); // TODO: this is not pretty, but in the end this will be determined on the server anyway
		m_harvests.Add(harvest);
		m_tileModifications.resource_tile = new ModifiedFields(true);
		base.DoIt(selection);
	}