#include </home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/Range.hpp>
◆ clamp()
| void libvgcode::Range::clamp |
( |
Range & | other | ) |
|
21{
22 other.m_range[0] = std::clamp(other.m_range[0],
m_range[0],
m_range[1]);
23 other.m_range[1] = std::clamp(other.m_range[1],
m_range[0],
m_range[1]);
24}
Interval m_range
Definition Range.hpp:34
References m_range.
◆ get()
| const Interval & libvgcode::Range::get |
( |
| ) |
const |
|
inline |
◆ get_max()
| Interval::value_type libvgcode::Range::get_max |
( |
| ) |
const |
|
inline |
◆ get_min()
| Interval::value_type libvgcode::Range::get_min |
( |
| ) |
const |
|
inline |
◆ operator!=()
| bool libvgcode::Range::operator!= |
( |
const Range & | other | ) |
const |
|
inline |
◆ operator==()
| bool libvgcode::Range::operator== |
( |
const Range & | other | ) |
const |
|
inline |
◆ reset()
| void libvgcode::Range::reset |
( |
| ) |
|
|
inline |
◆ set() [1/3]
| void libvgcode::Range::set |
( |
const Interval & | range | ) |
|
|
inline |
17{
set(range[0], range[1]); }
void set(const Range &other)
Definition Range.hpp:16
References set().
Referenced by set().
◆ set() [2/3]
| void libvgcode::Range::set |
( |
const Range & | other | ) |
|
|
inline |
◆ set() [3/3]
| void libvgcode::Range::set |
( |
Interval::value_type | min, |
|
|
Interval::value_type | max ) |
13{
14 if (max < min)
15 std::swap(min, max);
18}
References m_range.
◆ set_max()
| void libvgcode::Range::set_max |
( |
Interval::value_type | max | ) |
|
|
inline |
◆ set_min()
| void libvgcode::Range::set_min |
( |
Interval::value_type | min | ) |
|
|
inline |
◆ m_range
| Interval libvgcode::Range::m_range { 0, 0 } |
|
private |
Referenced by clamp(), get(), get_max(), get_min(), operator!=(), operator==(), reset(), set(), set(), set_max(), and set_min().
The documentation for this class was generated from the following files:
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/Range.hpp
- /home/runner/work/OrcaSlicer/OrcaSlicer/src/libvgcode/src/Range.cpp