Unravel Engine C++ Reference
Loading...
Searching...
No Matches
point< T > Struct Template Reference

#include <basetypes.hpp>

Public Types

using value_type = T
 

Public Member Functions

 point ()=default
 
 point (T _x, T _y)
 
template<typename U , typename = typename std::enable_if<std::is_convertible<U, T>::value, void>::type>
 point (const std::array< U, 2 > &data)
 
bool operator== (const point &b) const
 
bool operator!= (const point &b) const
 

Public Attributes

x = 0
 
y = 0
 

Detailed Description

template<typename T>
struct point< T >

Definition at line 96 of file basetypes.hpp.

Member Typedef Documentation

◆ value_type

template<typename T >
using point< T >::value_type = T

Definition at line 98 of file basetypes.hpp.

Constructor & Destructor Documentation

◆ point() [1/3]

template<typename T >
point< T >::point ( )
default

◆ point() [2/3]

template<typename T >
point< T >::point ( T _x,
T _y )
inline

Definition at line 101 of file basetypes.hpp.

◆ point() [3/3]

template<typename T >
template<typename U , typename = typename std::enable_if<std::is_convertible<U, T>::value, void>::type>
point< T >::point ( const std::array< U, 2 > & data)
inlineexplicit

Definition at line 105 of file basetypes.hpp.

Member Function Documentation

◆ operator!=()

template<typename T >
bool point< T >::operator!= ( const point< T > & b) const
inline

Definition at line 117 of file basetypes.hpp.

◆ operator==()

template<typename T >
bool point< T >::operator== ( const point< T > & b) const
inline

Definition at line 113 of file basetypes.hpp.

Member Data Documentation

◆ x

template<typename T >
T point< T >::x = 0

Definition at line 109 of file basetypes.hpp.

◆ y

template<typename T >
T point< T >::y = 0

Definition at line 110 of file basetypes.hpp.


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