![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
Templated static dimensions point representation. More...
#include <Coords.hpp>

Public Types | |
| using | iterator = value_type * |
| using | const_iterator = value_type const * |
Public Member Functions | |
| void | swap (Coords &rhs) noexcept |
| Swaps this pont data with the parameter ones. | |
| uint32_t | size () const |
| T const & | operator[] (uint32_t index) const |
| Retrieves the data at given index. | |
| T & | operator[] (uint32_t index) |
| Retrieves the data at given index. | |
| T * | ptr () |
| Retrieves a non constant pointer on datas. | |
| T const * | constPtr () const |
| Retrieves a constant pointer on datas. | |
| iterator | begin () |
| Retrieves an iterator to the first element. | |
| const_iterator | begin () const |
| Retrieves a constant iterator to the first element. | |
| iterator | end () |
| Retrieves an iterator to the last element. | |
| const_iterator | end () const |
| Retrieves a constant iterator to the last element. | |
| Coords ()=default | |
| Coords (Point< T, Count > &rhs) | |
| Coords (T *rhs) | |
| Coords & | operator= (T *rhs) |
| Coords & | operator= (Point< T, Count > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator+= (Coords< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator-= (Coords< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator*= (Coords< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator/= (Coords< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator+= (Point< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator-= (Point< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator*= (Point< U, UCount > const &rhs) |
| template<typename U , uint32_t UCount> | |
| Coords & | operator/= (Point< U, UCount > const &rhs) |
| template<typename U > | |
| Coords & | operator+= (U const *coords) |
| template<typename U > | |
| Coords & | operator-= (U const *coords) |
| template<typename U > | |
| Coords & | operator*= (U const *coords) |
| template<typename U > | |
| Coords & | operator/= (U const *coords) |
| Coords & | operator+= (T const &coord) |
| Coords & | operator-= (T const &coord) |
| Coords & | operator*= (T const &coord) |
| Coords & | operator/= (T const &coord) |
Friends | |
| template<typename U , uint32_t UCount> | |
| class | Coords |
Templated static dimensions point representation.
| using castor::Coords< T, Count >::const_iterator = value_type const * |
Typedef over a constant pointer on data.
| using castor::Coords< T, Count >::iterator = value_type * |
Typedef over a pointer on data.
|
default |
name Construction / Destruction.
|
explicit |
|
explicit |
|
inline |
Retrieves an iterator to the first element.
|
inline |
Retrieves a constant iterator to the first element.
|
inline |
Retrieves a constant pointer on datas.
Referenced by castor3d::getBuffer(), and castor3d::getBuffer().

|
inline |
Retrieves an iterator to the last element.
|
inline |
Retrieves a constant iterator to the last element.
| Coords & castor::Coords< T, Count >::operator*= | ( | Coords< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator*= | ( | Point< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator*= | ( | T const & | coord | ) |
| Coords & castor::Coords< T, Count >::operator*= | ( | U const * | coords | ) |
| Coords & castor::Coords< T, Count >::operator+= | ( | Coords< U, UCount > const & | rhs | ) |
name Arithmetic operators.
| Coords & castor::Coords< T, Count >::operator+= | ( | Point< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator+= | ( | T const & | coord | ) |
| Coords & castor::Coords< T, Count >::operator+= | ( | U const * | coords | ) |
| Coords & castor::Coords< T, Count >::operator-= | ( | Coords< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator-= | ( | Point< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator-= | ( | T const & | coord | ) |
| Coords & castor::Coords< T, Count >::operator-= | ( | U const * | coords | ) |
| Coords & castor::Coords< T, Count >::operator/= | ( | Coords< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator/= | ( | Point< U, UCount > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator/= | ( | T const & | coord | ) |
| Coords & castor::Coords< T, Count >::operator/= | ( | U const * | coords | ) |
| Coords & castor::Coords< T, Count >::operator= | ( | Point< T, Count > const & | rhs | ) |
| Coords & castor::Coords< T, Count >::operator= | ( | T * | rhs | ) |
name Assignment operators.
|
inline |
Retrieves the data at given index.
|
inline |
Retrieves the data at given index.
|
inline |
Retrieves a non constant pointer on datas.
Referenced by castor3d::getBuffer(), and castor3d::getBuffer().

|
inline |
|
noexcept |
Swaps this pont data with the parameter ones.
| [in] | rhs | The point to swap |
|
friend |