/// <summary>
        /// 2直線の交点を求める
        /// </summary>
        /// <param name="line1"></param>
        /// <param name="line2"></param>
        /// <returns></returns>
#else
        /// <summary>
        /// Calculates a intersection of the specified two lines
        /// </summary>
        /// <param name="line1"></param>
        /// <param name="line2"></param>
        /// <returns></returns>
#endif
        public static Point?LineIntersection(LineSegmentPolar line1, LineSegmentPolar line2)
        {
            var seg1 = line1.ToSegmentPoint(5000);
            var seg2 = line2.ToSegmentPoint(5000);

            return(LineSegmentPoint.LineIntersection(seg1, seg2));
        }
Beispiel #2
0
 public static double2x2 ToDouble2x2(this LineSegmentPoint line)
 {
     return(new double2x2(line.P1.ToDouble2(), line.P2.ToDouble2()));
 }