예제 #1
0
        public static bool PointIsBelowSegmentExtentsBottomInclusive_On_Ends(double yPtN)
        {
            IPathSegment segment = new LineSegment(
                new CartesianCoordinate(1, 2),
                new CartesianCoordinate(15, 5));

            return(PointProjection.PointIsBelowSegmentExtentsInclusive(yPtN, segment));
        }
예제 #2
0
        public static bool PointIsBelowSegmentExtentsBottom_SlopedLine(double yPtN, double yBottomEnd, double yTopEnd)
        {
            IPathSegment segment = new LineSegment(
                new CartesianCoordinate(10, yBottomEnd),
                new CartesianCoordinate(20, yTopEnd));

            return(PointProjection.PointIsBelowSegmentExtentsInclusive(yPtN, segment));
        }