This class defines a circle given its center and radius.
More...
#include <types.hpp>
|
| | Circ_ () |
| |
| | Circ_ (const cv::Point_< T > center, const T radius) |
| |
| bool | empty () const |
| | Check if empty.
|
| |
| template<typename Te> |
| bool | contains (const Event_< Te > &e) const |
| | Check if the circle contains an event.
|
| |
|
cv::Size | size () const |
| |
|
double | area () const |
| |
|
|
cv::Point_< T > | center |
| |
|
T | radius |
| |
template<typename T>
struct ev::Circ_< T >
This class defines a circle given its center and radius.
Analogously to OpenCV library, the following aliases are defined for convenience:
Circ_()
Definition types.hpp:467
Circ_< long > Circl
Definition types.hpp:504
Circ_< double > Circd
Definition types.hpp:506
Circ_< int > Circi
Definition types.hpp:503
Circ_< float > Circf
Definition types.hpp:505
Circi Circ
Definition types.hpp:507
◆ Circ_() [1/2]
◆ Circ_() [2/2]
template<typename T>
| ev::Circ_< T >::Circ_ |
( |
const cv::Point_< T > | center, |
|
|
const T | radius ) |
|
inline |
Constructor using center and radius.
- Parameters
-
| center | Center |
| radius | Radius |
◆ contains()
template<typename T>
template<typename Te>
Check if the circle contains an event.
- Parameters
-
- Returns
- True if the event is inside
- Warning
- This function assumes that the boundary of the circle is inclusive.
◆ empty()
Check if empty.
- Returns
- True if empty
The documentation for this struct was generated from the following file: