MCPcopy Create free account
hub / github.com/PDAL/PDAL / valuePasses

Method valuePasses

filters/private/DimRange.cpp:125–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123
124
125bool DimRange::valuePasses(double v) const
126{
127 // Determine if a point passes a range.
128 bool fail = std::isnan(v) ||
129 ((m_inclusive_lower_bound && v < m_lower_bound) ||
130 (!m_inclusive_lower_bound && v <= m_lower_bound) ||
131 (m_inclusive_upper_bound && v > m_upper_bound) ||
132 (!m_inclusive_upper_bound && v >= m_upper_bound));
133 if (m_negate)
134 fail = !fail;
135 return !fail;
136}
137
138// Important - range list must be sorted.
139// This applies OR logic when there are multiple ranges for the same

Callers 6

doOneMethod · 0.80
filterMethod · 0.80
doOneMethod · 0.80
processOneMethod · 0.80
ignoreDimRangeFunction · 0.80
pointPassesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected