public static bool PointIsWithinSegmentExtentsHeightInclusive_On_Ends(double yPtN) { IPathSegment segment = new LineSegment( new CartesianCoordinate(1, 2), new CartesianCoordinate(15, 5)); return(PointProjection.PointIsWithinSegmentExtentsHeightInclusive(yPtN, segment)); }
public static bool PointIsWithinSegmentExtentsHeight_SlopedLine(double yPtN, double yLeftEnd, double yRightEnd) { IPathSegment segment = new LineSegment( new CartesianCoordinate(1, yLeftEnd), new CartesianCoordinate(15, yRightEnd)); return(PointProjection.PointIsWithinSegmentExtentsHeightInclusive(yPtN, segment)); }