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