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)); }
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)); }