Check if the one segment is completely within another segment.
This function determines whether the segment a
is entirely within the
range specified by the segment b
.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(segment_t), | intent(in) | :: | a | |||
type(segment_t), | intent(in) | :: | b |
pure elemental function seg_in_segment(a, b) result(res) implicit none type(segment_t), intent(in) :: a, b logical :: res res = b%min <= a%min .and. a%max <= b%max end function seg_in_segment