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

#include <math.hpp>

Inherits LiteFX::Math::Vector< Float, 4 >.

Public Member Functions

 Vector4f () noexcept
 
 Vector4f (const Float &v) noexcept
 
 Vector4f (const Float &x, const Float &y, const Float &z, const Float &w) noexcept
 
 Vector4f (const Vector4f &) noexcept
 
 Vector4f (const Vector< Float, 4 > &) noexcept
 
 Vector4f (Vector4f &&) noexcept
 
 Vector4f (Vector< Float, 4 > &&) noexcept
 
Vector4foperator= (const Vector< Float, 4 > &_other) noexcept
 
Vector4foperator= (Vector< Float, 4 > &&_other) noexcept
 
Vector4foperator= (const Array< Float > &_other) noexcept
 
Vector4foperator= (const Vector4f &_other) noexcept
 
Vector4foperator= (Vector4f &&_other) noexcept
 
const Floatoperator[] (const unsigned int &i) const noexcept
 
Floatoperator[] (const unsigned int &i) noexcept
 
 operator Array< Float > () noexcept
 
- Public Member Functions inherited from LiteFX::Math::Vector< Float, 4 >
 Vector () noexcept=default
 
 Vector (const Float &val) noexcept
 
 Vector (const vec_type &_other) noexcept
 
 Vector (vec_type &&_other) noexcept
 
Vector< Float, DIM > & operator= (const Vector< Float, DIM > &_other) noexcept
 
Vector< Float, DIM > & operator= (Vector< Float, DIM > &&_other) noexcept
 
const Floatoperator[] (const unsigned int &i) const noexcept
 
Floatoperator[] (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< Float, 4 >
using scalar_type = Float
 
using vec_type = Vector< scalar_type, vec_size >
 
- Static Public Attributes inherited from LiteFX::Math::Vector< Float, 4 >
static constexpr size_t vec_size
 
- Protected Attributes inherited from LiteFX::Math::Vector< Float, 4 >
scalar_type m_elements [vec_size]
 

Constructor & Destructor Documentation

◆ Vector4f() [1/7]

Vector4f::Vector4f ( )
noexcept

◆ Vector4f() [2/7]

Vector4f::Vector4f ( const Float v)
noexcept

◆ Vector4f() [3/7]

Vector4f::Vector4f ( const Float x,
const Float y,
const Float z,
const Float w 
)
noexcept

◆ Vector4f() [4/7]

Vector4f::Vector4f ( const Vector4f _v)
noexcept

◆ Vector4f() [5/7]

Vector4f::Vector4f ( const Vector< Float, 4 > &  _v)
noexcept

◆ Vector4f() [6/7]

Vector4f::Vector4f ( Vector4f &&  _v)
noexcept

◆ Vector4f() [7/7]

Vector4f::Vector4f ( Vector< Float, 4 > &&  _v)
noexcept

Member Function Documentation

◆ operator Array< Float >()

Vector4f::operator Array< Float > ( )
inlinenoexcept

◆ operator=() [1/5]

Vector4f & Vector4f::operator= ( const Array< Float > &  _other)
inlinenoexcept

◆ operator=() [2/5]

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

◆ operator=() [3/5]

Vector4f & Vector4f::operator= ( const Vector< Float, 4 > &  _other)
inlinenoexcept

◆ operator=() [4/5]

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

◆ operator=() [5/5]

Vector4f & Vector4f::operator= ( Vector< Float, 4 > &&  _other)
inlinenoexcept

◆ operator[]() [1/2]

const Float & Vector4f::operator[] ( const unsigned int &  i) const
inlinenoexcept

◆ operator[]() [2/2]

Float & Vector4f::operator[] ( const unsigned int &  i)
inlinenoexcept