LiteFX 0.3.1.2022
Computer Graphics Engine
LiteFX::Math::Vector2i Class Reference

#include <math.hpp>

Inherits LiteFX::Math::Vector< Int32, 2 >.

Public Member Functions

 Vector2i () noexcept
 
 Vector2i (const Int32 &v) noexcept
 
 Vector2i (const Int32 &x, const Int32 &y) noexcept
 
 Vector2i (const Vector2i &) noexcept
 
 Vector2i (const Vector< Int32, 2 > &) noexcept
 
 Vector2i (Vector2i &&) noexcept
 
 Vector2i (Vector< Int32, 2 > &&) noexcept
 
Vector2ioperator= (const Vector< Int32, 2 > &_other) noexcept
 
Vector2ioperator= (Vector< Int32, 2 > &&_other) noexcept
 
Vector2ioperator= (const Array< Int32 > &_other) noexcept
 
Vector2ioperator= (const Vector2i &_other) noexcept
 
Vector2ioperator= (Vector2i &&_other) noexcept
 
const Int32operator[] (const unsigned int &i) const noexcept
 
Int32operator[] (const unsigned int &i) noexcept
 
 operator Array< Int32 > () noexcept
 
- Public Member Functions inherited from LiteFX::Math::Vector< Int32, 2 >
 Vector () noexcept=default
 
 Vector (const Int32 &val) noexcept
 
 Vector (const vec_type &_other) noexcept
 
 Vector (vec_type &&_other) noexcept
 
Vector< Int32, DIM > & operator= (const Vector< Int32, DIM > &_other) noexcept
 
Vector< Int32, DIM > & operator= (Vector< Int32, DIM > &&_other) noexcept
 
const Int32operator[] (const unsigned int &i) const noexcept
 
Int32operator[] (const unsigned int &i) noexcept
 
const scalar_typeelements () const noexcept
 
int size () const noexcept
 
const scalar_typex () const noexcept
 
scalar_typex () noexcept
 
const scalar_typey () const noexcept
 
scalar_typey () noexcept
 
const scalar_typez () const noexcept
 
scalar_typez () noexcept
 
const scalar_typew () const noexcept
 
scalar_typew () noexcept
 

Additional Inherited Members

- Public Types inherited from LiteFX::Math::Vector< Int32, 2 >
using scalar_type = Int32
 
using vec_type = Vector< scalar_type, vec_size >
 
- Static Public Attributes inherited from LiteFX::Math::Vector< Int32, 2 >
static constexpr size_t vec_size
 
- Protected Attributes inherited from LiteFX::Math::Vector< Int32, 2 >
scalar_type m_elements [vec_size]
 

Constructor & Destructor Documentation

◆ Vector2i() [1/7]

Vector2i::Vector2i ( )
noexcept

◆ Vector2i() [2/7]

Vector2i::Vector2i ( const Int32 v)
noexcept

◆ Vector2i() [3/7]

Vector2i::Vector2i ( const Int32 x,
const Int32 y 
)
noexcept

◆ Vector2i() [4/7]

Vector2i::Vector2i ( const Vector2i _v)
noexcept

◆ Vector2i() [5/7]

Vector2i::Vector2i ( const Vector< Int32, 2 > &  _v)
noexcept

◆ Vector2i() [6/7]

Vector2i::Vector2i ( Vector2i &&  _v)
noexcept

◆ Vector2i() [7/7]

Vector2i::Vector2i ( Vector< Int32, 2 > &&  _v)
noexcept

Member Function Documentation

◆ operator Array< Int32 >()

Vector2i::operator Array< Int32 > ( )
inlinenoexcept

◆ operator=() [1/5]

Vector2i & Vector2i::operator= ( const Array< Int32 > &  _other)
inlinenoexcept

◆ operator=() [2/5]

Vector2i & Vector2i::operator= ( const Vector2i _other)
inlinenoexcept

◆ operator=() [3/5]

Vector2i & Vector2i::operator= ( const Vector< Int32, 2 > &  _other)
inlinenoexcept

◆ operator=() [4/5]

Vector2i & Vector2i::operator= ( Vector2i &&  _other)
inlinenoexcept

◆ operator=() [5/5]

Vector2i & Vector2i::operator= ( Vector< Int32, 2 > &&  _other)
inlinenoexcept

◆ operator[]() [1/2]

const Int32 & Vector2i::operator[] ( const unsigned int &  i) const
inlinenoexcept

◆ operator[]() [2/2]

Int32 & Vector2i::operator[] ( const unsigned int &  i)
inlinenoexcept