Common templated class for all the geometric primitives.
More...
#include <homog2d.hpp>
|
std::pair< int, int > | dsize () const |
| Get data size expressed as number of bits for, respectively, mantissa and exponent. More...
|
|
Dtype | dtype () const |
| Get numerical data type as a Dtype value, can be stringified with h2d::getString(Dtype) More...
|
|
template<typename T > |
constexpr bool | isInside (const Common< T > &) const |
| This function is a fallback for all sub-classes that do not provide such a method. More...
|
|
size_t | size () const |
|
template<typename FPT>
class h2d::detail::Common< FPT >
Common templated class for all the geometric primitives.
◆ dsize()
Get data size expressed as number of bits for, respectively, mantissa and exponent.
- See also
- h2d::dsize(const T&)
std::pair< int, int > impl_dsize(const detail::DataFpType< T > &)
Implementation of dsize(), returns nb of bits of mantissa and exponent (default implementation) ...
Definition: homog2d.hpp:1142
◆ dtype()
◆ isInside()
template<typename FPT>
template<typename T >
This function is a fallback for all sub-classes that do not provide such a method.
It is necessary in a runtime polymorphism context, as we would have build failures if a given type disallows providing such a method (for example, when trying to check if some object is inside an open polyline, which makes no sense).
#define HOMOG2D_START
Definition: homog2d.hpp:106
◆ size()
The documentation for this class was generated from the following file: