Return a float in (0,1) if a float segment intersects a float with respect to an epsilon value, return -1.0 if the value is not located in the segment or if it is approximately equal to the start or the end value.
- Parameters
-
[in] | start,end | Values defining the segment |
[in] | value | Value to locate |
- Returns
- The function returns -1.0 if the value is approximately equal to the start or the end value
- Note
- The function is used in the lifting infrastructure for determining the crossings or the turning points after verifying that the bounds of the segment are not equal to the value.