public IntPoint Round( ) { return new IntPoint( (int) Math.Round( X ), (int) Math.Round( Y ) ); }
public void RoundTest( float x, float y, int expectedX, int expectedY ) { Point point = new Point( x, y ); IntPoint iPoint = new IntPoint( expectedX, expectedY ); Assert.AreEqual( iPoint, point.Round( ) ); }