public DoublePoint Add(DoublePoint point1, DoublePoint point2) {
        DoublePoint result = new DoublePoint(point1);
        result.Add(point2);
        return result;
    }
public DoublePoint Add ( DoublePoint point1 , DoublePoint point2 ) { DoublePoint result = new DoublePoint ( point1 ) ; result . Add ( point2 ) ; return result ; }
Adds values of two points.

@param point1 DoublePoint.
@param point2 DoublePoint.
@return A new DoublePoint with the add operation.