You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.04.
File range.hpp
Header file for the Range class.
Functions
-
namespace slamcore
Main namespace for the Slamcore public API
Helper conversion methods
slamcore::ImageFormat \(\leftrightarrow\) BytesPerChannel
Get information about the client library
Functions
-
class Range1D
- #include <range.hpp>
Captures the half-open interval [min, max)
Public Types
-
using ValueT = int
Public Functions
-
Range1D() = default
-
inline ValueT min() const
Get the min value of the range.
-
inline ValueT max() const
Get the max value of the range.
-
inline Range1D expanded(ValueT point) const
Return a new Range so that the point is within the range.
-
inline Range1D intersection(const Range1D &other) const
Return a new range of the intersection of this range with another.
-
inline ValueT length() const
Get the length of the range.
-
inline bool empty() const
Check if the range is empty.
-
inline bool contains(ValueT point) const
Check if the Range contains a point.
-
using ValueT = int
-
class Range2D
- #include <range.hpp>
Captures the half-open 2D interval [(x_min, y_min), (x_max, y_max))
Public Functions
-
Range2D() = default
-
inline ValueT min() const
Get the min value of the range.
-
inline ValueT max() const
Get the max value of the range.
-
inline Range2D expanded(const ValueT &point) const
Return a new Range so that the point is within the range.
-
inline Range2D intersection(const Range2D &other) const
Return a new range of the intersection of this range with another.
-
inline ScalarT area() const
Get the area of the 2D range.
-
inline bool empty() const
Check if the range is empty.
-
inline bool contains(const ValueT &point) const
Check if the Range contains a point.
-
Range2D() = default
-
class Range1D