/// <summary> /// Append a point to the collection /// </summary> /// <param name="x">The x value of the point to append</param> /// <param name="y">The y value of the point to append</param> public void Add( double x, double y ) { DataPoint dp = new DataPoint(); dp.X = x; dp.Y = y; Add( dp ); }
/// <summary> /// Add a <see cref="DataPoint"/> object to the collection at the end of the list. /// </summary> /// <param name="dp">A <see cref="DataPoint"/> struct to be added</param> /// <seealso cref="System.Collections.IList.Add"/> public int Add( DataPoint dp ) { return List.Add( dp ); }
/// <summary> /// Append a data point to the collection /// </summary> /// <param name="pt">The <see cref="PointPair" /> value to append</param> public void Add( PointPair pt ) { DataPoint dp = new DataPoint(); dp.X = pt.X; dp.Y = pt.Y; Add( dp ); }