/// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="c">PlotPoint being copied</param>
 public PlotPoint(PlotPoint c)
 {
     this.ptX = c.GetCoordX();
     this.ptY = c.GetCoordY();
     this.ptZ = c.GetCoordZ();
 }
        /// <summary>
        /// Calculates the distance from this point and the new point
        /// </summary>
        /// <param name="B">The plot point being compared from</param>
        /// <returns>The distance</returns>
        public double GetDistance(PlotPoint B)
        {
            double distX, distY, distZ;

            distX = Math.Pow(B.GetCoordX() - this.ptX, 2);
            distY = Math.Pow(B.GetCoordY() - this.ptY, 2);
            distZ = Math.Pow(B.GetCoordZ() - this.ptZ, 2);

            return Math.Sqrt(distX + distY + distZ);
        }