예제 #1
0
        public static void IsConcaveInside(
            double magnitudeX1, double magnitudeY1,
            double magnitudeX2, double magnitudeY2, bool expectedResult)
        {
            LineSegment segment1 = new LineSegment(new CartesianCoordinate(0, 0), new CartesianCoordinate(magnitudeX1, magnitudeY1));
            LineSegment segment2 = new LineSegment(new CartesianCoordinate(0, 0), new CartesianCoordinate(magnitudeX2, magnitudeY2));

            Assert.AreEqual(expectedResult, GeometryLibrary.IsConcaveInside(segment1, segment2));
        }