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

#include <geometry.hpp>

Public Member Functions

Point2D< T > bottomRight () const
Point2D< T > bottomLeft () const
Point2D< T > topLeft () const
Point2D< T > topRight () const
T top () const
T left () const
T bottom () const
T right () const
T width () const
T height () const
bool checkCollision (const Rectangle< T > &other, bool ignoreTouching=true) const
bool operator== (const Rectangle< T > &other) const =default

Public Attributes

Point2D< T > position
Point2D< T > size

Detailed Description

template<typename T>
struct Rectangle< T >

Definition at line 40 of file geometry.hpp.

Member Function Documentation

◆ bottom()

template<typename T>
T Rectangle< T >::bottom ( ) const
inline

Definition at line 75 of file geometry.hpp.

Here is the caller graph for this function:

◆ bottomLeft()

template<typename T>
Point2D< T > Rectangle< T >::bottomLeft ( ) const
inline

Definition at line 50 of file geometry.hpp.

◆ bottomRight()

template<typename T>
Point2D< T > Rectangle< T >::bottomRight ( ) const
inline

Definition at line 45 of file geometry.hpp.

◆ checkCollision()

template<typename T>
bool Rectangle< T >::checkCollision ( const Rectangle< T > & other,
bool ignoreTouching = true ) const
inline

Definition at line 95 of file geometry.hpp.

Here is the call graph for this function:

◆ height()

template<typename T>
T Rectangle< T >::height ( ) const
inline

Definition at line 90 of file geometry.hpp.

◆ left()

template<typename T>
T Rectangle< T >::left ( ) const
inline

Definition at line 70 of file geometry.hpp.

Here is the caller graph for this function:

◆ operator==()

template<typename T>
bool Rectangle< T >::operator== ( const Rectangle< T > & other) const
default

◆ right()

template<typename T>
T Rectangle< T >::right ( ) const
inline

Definition at line 80 of file geometry.hpp.

Here is the caller graph for this function:

◆ top()

template<typename T>
T Rectangle< T >::top ( ) const
inline

Definition at line 65 of file geometry.hpp.

Here is the caller graph for this function:

◆ topLeft()

template<typename T>
Point2D< T > Rectangle< T >::topLeft ( ) const
inline

Definition at line 55 of file geometry.hpp.

◆ topRight()

template<typename T>
Point2D< T > Rectangle< T >::topRight ( ) const
inline

Definition at line 60 of file geometry.hpp.

◆ width()

template<typename T>
T Rectangle< T >::width ( ) const
inline

Definition at line 85 of file geometry.hpp.

Member Data Documentation

◆ position

template<typename T>
Point2D<T> Rectangle< T >::position

Definition at line 42 of file geometry.hpp.

◆ size

template<typename T>
Point2D<T> Rectangle< T >::size

Definition at line 43 of file geometry.hpp.


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