Ejemplo n.º 1
0
        //
        // Summary:
        //     Initializes a new instance of the FractionPoint class with the specified
        //     coordinates.
        //
        // Parameters:
        //   y:
        //     The vertical position of the point.
        //
        //   x:
        //     The horizontal position of the point.
        public FractionPoint(Fraction x, Fraction y)
        {
            if (x == null)
            {
                throw new ArgumentNullException("x");
            }
            if (y == null)
            {
                throw new ArgumentNullException("y");
            }

            this.x = (Fraction)x.Clone();
            this.y = (Fraction)y.Clone();
        }