public void centroid() { var s = new Segment2(new Point2(1, 2), new Vector2(3, 4)); Assert.Equal(new Point2(1 + (3.0 / 2.0), 2 + (4 / 2)), s.GetCentroid()); }