Beispiel #1
0
        /// <summary>
        /// 2点間の距離を求める
        /// </summary>
        /// <returns></returns>
#else
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
#endif
        public double Length()
        {
            return(P1.DistanceTo(P2));
        }
        /// <summary>
        /// 2点間の距離を求める
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
#else
        /// <summary>
        ///
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
#endif
        public double Length(LineSegmentPoint s)
        {
            return(P1.DistanceTo(P2));
        }