GameKit  0.0.1a
C++ gamedev tools
Public Member Functions | Public Attributes | List of all members
gk::Vector2< T > Class Template Reference

#include <Vector2.hpp>

Public Member Functions

 Vector2 ()=default
 
 Vector2 (T _x, T _y)
 
template<typename U >
 Vector2 (const Vector2< U > &vector2)
 
Vector2 operator+ (const Vector2< T > &vector2) const
 
Vector2 operator- (const Vector2< T > &vector2) const
 
Vector2 operator- () const
 
Vector2 operator* (T n) const
 
Vector2 operator/ (T n) const
 
Vector2operator= (T n)
 
Vector2operator+= (const Vector2 &vector2)
 
Vector2operator-= (const Vector2 &vector2)
 
Vector2operator*= (T n)
 
Vector2operator/= (T n)
 
bool operator== (const Vector2< T > &vector2) const
 
bool operator!= (const Vector2< T > &vector2) const
 
bool operator< (const Vector2< T > &vector2) const
 
bool operator> (const Vector2< T > &vector2) const
 

Public Attributes

x
 
y
 

Detailed Description

template<typename T>
class gk::Vector2< T >

Definition at line 25 of file Vector2.hpp.

Constructor & Destructor Documentation

§ Vector2() [1/3]

template<typename T>
gk::Vector2< T >::Vector2 ( )
default

§ Vector2() [2/3]

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

Definition at line 29 of file Vector2.hpp.

§ Vector2() [3/3]

template<typename T>
template<typename U >
gk::Vector2< T >::Vector2 ( const Vector2< U > &  vector2)
inline

Definition at line 32 of file Vector2.hpp.

Member Function Documentation

§ operator!=()

template<typename T>
bool gk::Vector2< T >::operator!= ( const Vector2< T > &  vector2) const
inline

Definition at line 54 of file Vector2.hpp.

§ operator*()

template<typename T>
Vector2 gk::Vector2< T >::operator* ( n) const
inline

Definition at line 37 of file Vector2.hpp.

§ operator*=()

template<typename T>
Vector2& gk::Vector2< T >::operator*= ( n)
inline

Definition at line 50 of file Vector2.hpp.

§ operator+()

template<typename T>
Vector2 gk::Vector2< T >::operator+ ( const Vector2< T > &  vector2) const
inline

Definition at line 34 of file Vector2.hpp.

§ operator+=()

template<typename T>
Vector2& gk::Vector2< T >::operator+= ( const Vector2< T > &  vector2)
inline

Definition at line 48 of file Vector2.hpp.

§ operator-() [1/2]

template<typename T>
Vector2 gk::Vector2< T >::operator- ( const Vector2< T > &  vector2) const
inline

Definition at line 35 of file Vector2.hpp.

§ operator-() [2/2]

template<typename T>
Vector2 gk::Vector2< T >::operator- ( ) const
inline

Definition at line 36 of file Vector2.hpp.

§ operator-=()

template<typename T>
Vector2& gk::Vector2< T >::operator-= ( const Vector2< T > &  vector2)
inline

Definition at line 49 of file Vector2.hpp.

§ operator/()

template<typename T>
Vector2 gk::Vector2< T >::operator/ ( n) const
inline

Definition at line 39 of file Vector2.hpp.

§ operator/=()

template<typename T>
Vector2& gk::Vector2< T >::operator/= ( n)
inline

Definition at line 51 of file Vector2.hpp.

§ operator<()

template<typename T>
bool gk::Vector2< T >::operator< ( const Vector2< T > &  vector2) const
inline

Definition at line 57 of file Vector2.hpp.

§ operator=()

template<typename T>
Vector2& gk::Vector2< T >::operator= ( n)
inline

Definition at line 47 of file Vector2.hpp.

§ operator==()

template<typename T>
bool gk::Vector2< T >::operator== ( const Vector2< T > &  vector2) const
inline

Definition at line 53 of file Vector2.hpp.

§ operator>()

template<typename T>
bool gk::Vector2< T >::operator> ( const Vector2< T > &  vector2) const
inline

Definition at line 58 of file Vector2.hpp.

Member Data Documentation

§ x

template<typename T>
T gk::Vector2< T >::x

Definition at line 60 of file Vector2.hpp.

§ y

template<typename T>
T gk::Vector2< T >::y

Definition at line 61 of file Vector2.hpp.


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