/// <summary> /// Calculate the centre of a square object /// </summary> /// <param name="square">The square to find the centre of</param> public static void CalculateSquareCenter(Square square) { ShapeCenter.X = (square.Start.X + square.End.X) / 2; ShapeCenter.Y = (square.Start.Y + square.End.Y) / 2; }