zxing-cpp v3.0
Loading...
Searching...
No Matches
ZXing::PointT< T > Struct Template Reference

#include <Point.h>

Public Types

using value_t = T

Public Member Functions

constexpr PointT ()=default
constexpr PointT (T x, T y)
template<typename U>
constexpr PointT (const PointT< U > &p)
template<typename U>
PointToperator+= (const PointT< U > &b)

Public Attributes

x = 0
y = 0

Detailed Description

template<typename T>
struct ZXing::PointT< T >

A simple 2D point class template.

PointT is a simple 2D point class template with direct access to its x and y coordinate members.

Member Typedef Documentation

◆ value_t

template<typename T>
using ZXing::PointT< T >::value_t = T

Constructor & Destructor Documentation

◆ PointT() [1/3]

template<typename T>
ZXing::PointT< T >::PointT ( )
constexprdefault

◆ PointT() [2/3]

template<typename T>
ZXing::PointT< T >::PointT ( T x,
T y )
inlineconstexpr

◆ PointT() [3/3]

template<typename T>
template<typename U>
ZXing::PointT< T >::PointT ( const PointT< U > & p)
inlineexplicitconstexpr

Member Function Documentation

◆ operator+=()

template<typename T>
template<typename U>
PointT & ZXing::PointT< T >::operator+= ( const PointT< U > & b)
inline

Member Data Documentation

◆ x

template<typename T>
T ZXing::PointT< T >::x = 0

◆ y

template<typename T>
T ZXing::PointT< T >::y = 0

The documentation for this struct was generated from the following file: