cpp_robotics::AngleRange
角度[rad]に対して範囲を指定する 複数の角度の範囲の合成をしたり逆を取ったりできる
#include <angle_range.hpp>
Public Types
Name | |
---|---|
using std::pair< double, double > | range_pair_t |
Public Functions
Name | |
---|---|
AngleRange() =default | |
void | add_range(const AngleRange & range) |
void | add_range(double start, double end) |
size_t | size() const |
AngleRange | invert() const |
double | most_near_by(double angle) |
bool | in_range_part(range_pair_t & range, double angle) |
bool | in_range(double angle) |
std::vector< range_pair_t > | ranges() const |
Public Attributes
Name | |
---|---|
constexpr static double | PI |
Public Types Documentation
using range_pair_t
using cpp_robotics::AngleRange::range_pair_t = std::pair<double, double>;
Public Functions Documentation
function AngleRange
AngleRange() =default
function add_range
inline void add_range(
const AngleRange & range
)
function add_range
inline void add_range(
double start,
double end
)
function size
inline size_t size() const
function invert
inline AngleRange invert() const
function most_near_by
inline double most_near_by(
double angle
)
function in_range_part
inline bool in_range_part(
range_pair_t & range,
double angle
)
function in_range
inline bool in_range(
double angle
)
function ranges
inline std::vector< range_pair_t > ranges() const
Public Attributes Documentation
variable PI
static constexpr static double PI = M_PI;
Updated on 2024-05-28 at 06:55:40 +0000