persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
Point2D< T > Struct Template Reference

#include <geometry.hpp>

Public Member Functions

 Point2D ()
 Point2D (T x, T z)
Point2D< T > operator+ (const Point2D< T > &other) const
Point2D< T > operator- (const Point2D< T > &other) const
Point2D< T > & operator= (const Point2D< T > &other)
bool operator== (const Point2D< T > &other) const =default

Public Attributes

T x
T z

Detailed Description

template<typename T>
struct Point2D< T >

Definition at line 8 of file geometry.hpp.

Constructor & Destructor Documentation

◆ Point2D() [1/2]

template<typename T>
Point2D< T >::Point2D ( )
inline

Definition at line 13 of file geometry.hpp.

Here is the caller graph for this function:

◆ Point2D() [2/2]

template<typename T>
Point2D< T >::Point2D ( T x,
T z )
inline

Definition at line 16 of file geometry.hpp.

Member Function Documentation

◆ operator+()

template<typename T>
Point2D< T > Point2D< T >::operator+ ( const Point2D< T > & other) const
inline

Definition at line 20 of file geometry.hpp.

Here is the call graph for this function:

◆ operator-()

template<typename T>
Point2D< T > Point2D< T >::operator- ( const Point2D< T > & other) const
inline

Definition at line 25 of file geometry.hpp.

Here is the call graph for this function:

◆ operator=()

template<typename T>
Point2D< T > & Point2D< T >::operator= ( const Point2D< T > & other)
inline

Definition at line 30 of file geometry.hpp.

Here is the call graph for this function:

◆ operator==()

template<typename T>
bool Point2D< T >::operator== ( const Point2D< T > & other) const
default
Here is the call graph for this function:

Member Data Documentation

◆ x

template<typename T>
T Point2D< T >::x

Definition at line 10 of file geometry.hpp.

◆ z

template<typename T>
T Point2D< T >::z

Definition at line 11 of file geometry.hpp.


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