public float EuclideanNorm( ) { return (float) System.Math.Sqrt( X * X + Y * Y ); } }
public void EuclideanNormTest( int x, int y, double expectedNorm ) { IntPoint point = new IntPoint( x, y ); Assert.AreEqual( point.EuclideanNorm( ), expectedNorm ); }