using System;
using System.Collections.Generic;
using System.Text;

namespace Chart
{
    /// <summary>
    /// Base class of point
    /// </summary>
    public class PointBase : IPoint
    {
        #region Fields

        /// <summary>
        /// The x coordinate
        /// </summary>
        double x;

        /// <summary>
        /// The y coordinate
        /// </summary>
        double y;

        object obj;

        #endregion

        #region Ctor

        public PointBase(double x, double y)
        {
            this.x = x;
            this.y = y;
        }

        #endregion

        #region IPoint Members

        double IPoint.X
        {
            get { return x; }
        }

        double IPoint.Y
        {
            get { return y; }
        }

        object IPoint.Properties
        {
            get
            {
                return obj;
            }
            set
            {
                obj = value;
            }
        }

        #endregion
    }
}
