コード例 #1
0
ファイル: Program.cs プロジェクト: Galex2020/HomeWork1
        static void Main(string[] args)
        {
            var a11 = new LineSegment.Point(double.Parse(ReadLine()), double.Parse(ReadLine()));
            var b12 = new LineSegment.Point(double.Parse(ReadLine()), double.Parse(ReadLine()));
            var a21 = new LineSegment.Point(double.Parse(ReadLine()), double.Parse(ReadLine()));
            var b22 = new LineSegment.Point(double.Parse(ReadLine()), double.Parse(ReadLine()));

            var ls1 = new LineSegment(a11, b12);
            var ls2 = new LineSegment(a21, b22);

            LineSegment.AreTheyCrossing(ls1, ls2);

            ReadKey(true);
        }