Public Member Functions | Public Attributes | List of all members
quori_face::Vector2< T > Class Template Reference

#include <Vector2.hpp>

Public Member Functions

bool operator!= (const Vector2< T > &other) const noexcept
 
Vector2< T > operator* (const Vector2< T > &rhs) noexcept
 
Vector2< T > & operator*= (const Vector2< T > &rhs) noexcept
 
Vector2< T > operator+ (const Vector2< T > &rhs) const noexcept
 
Vector2< T > & operator+= (const Vector2< T > &rhs) noexcept
 
Vector2< T > operator- (const Vector2< T > &rhs) const noexcept
 
Vector2< T > & operator-= (const Vector2< T > &rhs) noexcept
 
Vector2< T > operator/ (const Vector2< T > &rhs) noexcept
 
Vector2< T > & operator/= (const Vector2< T > &rhs) noexcept
 
bool operator== (const Vector2< T > &other) const noexcept
 
 Vector2 ()
 Construct a zero'd Vector2. More...
 
 Vector2 (const T x, const T y)
 

Public Attributes

x
 
y
 

Detailed Description

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

A 2D vector

Template Parameters
TThe element types

Definition at line 16 of file Vector2.hpp.

Constructor & Destructor Documentation

◆ Vector2() [1/2]

template<typename T >
quori_face::Vector2< T >::Vector2 ( )
inline

Construct a zero'd Vector2.

Definition at line 22 of file Vector2.hpp.

◆ Vector2() [2/2]

template<typename T >
quori_face::Vector2< T >::Vector2 ( const T  x,
const T  y 
)
inline

Definition at line 31 of file Vector2.hpp.

Member Function Documentation

◆ operator!=()

template<typename T >
bool quori_face::Vector2< T >::operator!= ( const Vector2< T > &  other) const
inlinenoexcept

Definition at line 45 of file Vector2.hpp.

◆ operator*()

template<typename T >
Vector2<T> quori_face::Vector2< T >::operator* ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 74 of file Vector2.hpp.

◆ operator*=()

template<typename T >
Vector2<T>& quori_face::Vector2< T >::operator*= ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 79 of file Vector2.hpp.

◆ operator+()

template<typename T >
Vector2<T> quori_face::Vector2< T >::operator+ ( const Vector2< T > &  rhs) const
inlinenoexcept

Definition at line 62 of file Vector2.hpp.

◆ operator+=()

template<typename T >
Vector2<T>& quori_face::Vector2< T >::operator+= ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 67 of file Vector2.hpp.

◆ operator-()

template<typename T >
Vector2<T> quori_face::Vector2< T >::operator- ( const Vector2< T > &  rhs) const
inlinenoexcept

Definition at line 50 of file Vector2.hpp.

◆ operator-=()

template<typename T >
Vector2<T>& quori_face::Vector2< T >::operator-= ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 55 of file Vector2.hpp.

◆ operator/()

template<typename T >
Vector2<T> quori_face::Vector2< T >::operator/ ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 86 of file Vector2.hpp.

◆ operator/=()

template<typename T >
Vector2<T>& quori_face::Vector2< T >::operator/= ( const Vector2< T > &  rhs)
inlinenoexcept

Definition at line 91 of file Vector2.hpp.

◆ operator==()

template<typename T >
bool quori_face::Vector2< T >::operator== ( const Vector2< T > &  other) const
inlinenoexcept

Definition at line 40 of file Vector2.hpp.

Member Data Documentation

◆ x

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

Definition at line 37 of file Vector2.hpp.

◆ y

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

Definition at line 38 of file Vector2.hpp.


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


quori_face
Author(s):
autogenerated on Wed Mar 2 2022 00:53:20