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

            return(PointProjection.PointIsLeftOfSegmentExtentsEndInclusive(xPtN, segment));
        }
예제 #2
0
        public static bool PointIsLeftOfSegmentExtentsEnd_SlopedLine(double xPtN, double xLeftEnd, double xRightEnd)
        {
            IPathSegment segment = new LineSegment(
                new CartesianCoordinate(xLeftEnd, 10),
                new CartesianCoordinate(xRightEnd, 20));

            return(PointProjection.PointIsLeftOfSegmentExtentsEndInclusive(xPtN, segment));
        }