MapLink Pro .
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
envitia::Point2D_< T > Struct Template Reference

A point with two coordinates of the same type. More...

Detailed Description

template<typename T>
struct envitia::Point2D_< T >

A point with two coordinates of the same type.

Template Parameters
TCoordinate type.

Public Member Functions

constexpr bool operator== (Point2D_ const &rhs) const
 Compare both point coordinates.
constexpr bool operator!= (Point2D_ const &rhs) const
 Test whether either point coordinate differs.

Public Attributes

T x
T y

Member Function Documentation

◆ operator!=()

template<typename T>
bool envitia::Point2D_< T >::operator!= ( Point2D_< T > const & rhs) const
inlineconstexpr

Test whether either point coordinate differs.

Parameters
rhsPoint to compare with.
Returns
Whether at least one coordinate differs.

◆ operator==()

template<typename T>
bool envitia::Point2D_< T >::operator== ( Point2D_< T > const & rhs) const
inlineconstexpr

Compare both point coordinates.

Parameters
rhsPoint to compare with.
Returns
Whether both coordinates are equal.

Member Data Documentation

◆ x

template<typename T>
T envitia::Point2D_< T >::x

◆ y

template<typename T>
T envitia::Point2D_< T >::y