Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
yage::Vector4< Type > Class Template Reference

4D Vector class More...

#include <matrix.h>

Inheritance diagram for yage::Vector4< Type >:
yage::Vector< 4, Type > yage::Matrix< Rows, 1, Type >

Public Member Functions

 Vector4 ()
 
 Vector4 (std::vector< Type > data)
 
 Vector4 (Type x_in, Type y_in, Type z_in, Type w_in)
 
 x (this->data_[0])
 
 y (this->data_[1])
 
 z (this->data_[2])
 
 w (this->data_[3])
 
- Public Member Functions inherited from yage::Vector< 4, Type >
 Vector ()
 
 Vector (const Matrix< Rows, 1, Type > &other)
 
 Vector (const std::vector< Type > &data)
 
Type & operator[] (int col)
 
const Type & operator[] (int col) const
 
std::string toString () const override
 Prints out the matrix, but can also be implemented by other classes to print data differently. More...
 
- Public Member Functions inherited from yage::Matrix< Rows, 1, Type >
 Matrix ()
 Initializes the size of the data_ vector. More...
 
 Matrix (const std::vector< Type > &data)
 
int rowSize () const
 Returns the row size of the Matrix. More...
 
int colSize () const
 Returns the column size of the Matrix. More...
 
Matrix< 1, Cols, Type > getRow (int row) const
 Return the row specified row as a Matrix with only one row. More...
 
Matrix< Rows, 1, Type > getCol (int col) const
 Get a specific column in a column vector. More...
 
std::vector< Type >::iterator begin ()
 Iterator support for the start. More...
 
std::vector< Type >::iterator end ()
 Iterator support for the end. More...
 
details::Row< Rows, Cols, Type > operator[] (int row)
 
details::Row< Rows, Cols, Type > operator[] (int row) const
 
Matrix< Rows, Cols, Type > & operator+= (const Matrix< Rows, Cols, Type > &rhs)
 
Matrix< Rows, Cols, Type > & operator-= (const Matrix< Rows, Cols, Type > &rhs)
 

Public Attributes

Type & x
 
Type & y
 
Type & z
 
Type & w
 

Additional Inherited Members

- Protected Attributes inherited from yage::Matrix< Rows, 1, Type >
std::vector< Type > data_
 Vector containing the data of the matrix. More...
 

Detailed Description

template<typename Type = double>
class yage::Vector4< Type >

4D Vector class

Constructor & Destructor Documentation

template<typename Type = double>
yage::Vector4< Type >::Vector4 ( )
inline
template<typename Type = double>
yage::Vector4< Type >::Vector4 ( std::vector< Type >  data)
inline
template<typename Type = double>
yage::Vector4< Type >::Vector4 ( Type  x_in,
Type  y_in,
Type  z_in,
Type  w_in 
)
inline

Member Function Documentation

template<typename Type = double>
yage::Vector4< Type >::w ( this->  data_[3])
inline
template<typename Type = double>
yage::Vector4< Type >::x ( this->  data_[0])
template<typename Type = double>
yage::Vector4< Type >::y ( this->  data_[1])
template<typename Type = double>
yage::Vector4< Type >::z ( this->  data_[2])

Member Data Documentation

template<typename Type = double>
Type & yage::Vector4< Type >::w
template<typename Type = double>
Type& yage::Vector4< Type >::x
template<typename Type = double>
Type & yage::Vector4< Type >::y
template<typename Type = double>
Type & yage::Vector4< Type >::z

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