コード例 #1
0
        /// <summary>
        /// 返回一个bool值指示点是否在线条中
        /// </summary>
        /// <returns></returns>
        bool PointsInLine()
        {
            double slope1 = HitUtil.LineSlope(P1, P2);
            double slope2 = HitUtil.LineSlope(P1, P3);

            return(slope1 == slope2);
        }
コード例 #2
0
 bool PointsInLine()
 {
     try
     {
         double slope1 = HitUtil.LineSlope(P1, P2);
         double slope2 = HitUtil.LineSlope(P1, P3);
         return(slope1 == slope2);
     }
     catch (Exception ex)
     { throw ex; }
 }