Dualie
Loading...
Searching...
No Matches
dl::Vector2< T > Class Template Reference

Used to contain a set of two numbers. More...

#include <Vector2.hpp>

Public Member Functions

 Vector2 (T x, T y)
 
dl::Vector2< T > operator+ (dl::Vector2< T > vector) const
 
dl::Vector2< T > operator- (dl::Vector2< T > vector) const
 
dl::Vector2< T > operator* (dl::Vector2< T > vector) const
 
dl::Vector2< T > operator/ (dl::Vector2< T > vector) const
 
bool operator== (dl::Vector2< T > vector) const
 
bool operator!= (dl::Vector2< T > vector) const
 
std::string toString () const
 Converts the vector to a floored string for printing purposes.
 

Public Attributes

x
 
y
 

Detailed Description

template<class T>
class dl::Vector2< T >

Used to contain a set of two numbers.

Template Parameters
TThe type of number contained

Member Function Documentation

◆ toString()

template<class T >
std::string dl::Vector2< T >::toString ( ) const
inline

Converts the vector to a floored string for printing purposes.

Returns
The vector in string format

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