Example #1
0
        /// <summary>
        /// Computes the distance between two points.
        /// </summary>
        /// <param name="other">Other point for distance measurement.</param>
        /// <returns>The length of the AKT_Line between this and the other point; or 0 if any of the points is not valid.</returns>
        /// <example>
        /// <code source="examples\vbnet\ex_intersectcurves.vb" lang="vbnet" />
        /// <code source="examples\cs\ex_intersectcurves.cs" lang="cs" />
        /// <code source="examples\py\ex_intersectcurves.py" lang="py" />
        /// </example>
        public double DistanceTo(AKT_Point3d other)
        {
            double mX = other.m_x - this.m_x;
            double mY = other.m_y - this.m_y;
            double mZ = other.m_z - this.m_z;

            return(AKT_Vector3d.GetLengthHelper(mX, mY, mZ));
        }