mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Add RangedValues::getIntersectionsStartingAtZeroWith
This commit is contained in:
parent
2d24504cd1
commit
213d3fb56a
1 changed files with 7 additions and 0 deletions
|
|
@ -800,6 +800,13 @@ public:
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RangedValues<T> getIntersectionsStartingAtZeroWith (Range<int64> r) const
|
||||||
|
{
|
||||||
|
auto result = getIntersectionsWith (r);
|
||||||
|
result.drop ({ (int64) 0, r.getStart() });
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
const auto& getRanges() const { return ranges; }
|
const auto& getRanges() const { return ranges; }
|
||||||
|
|
||||||
size_t size() const
|
size_t size() const
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue