template struct mrpt::img::TPixelCoordBase
Overview
Generic template for pixel coordinates.
#include <mrpt/img/TPixelCoord.h> template <typename T> struct TPixelCoordBase { // typedefs typedef T pixel_coord_t; // fields pixel_coord_t x {0}; pixel_coord_t y {0}; // construction TPixelCoordBase(); TPixelCoordBase( const T _x, const T _y ); template <typename U> TPixelCoordBase(const TPixelCoordBase<U>& o); // methods bool operator == (const TPixelCoordBase& o) const; TPixelCoordBase operator + (const TPixelCoordBase& o) const; TPixelCoordBase operator - (const TPixelCoordBase& o) const; };
Typedefs
typedef T pixel_coord_t
The type of x and y.