Castor3D 0.16.0
Multiplatform 3D engine
|
Templated static dimensions point representation. More...
#include <Point.hpp>
Public Types | |
using | iterator = value_type * |
using | const_iterator = value_type const * |
Public Member Functions | |
void | swap (Point &rhs) noexcept |
Swaps this pont data with the parameter ones. | |
std::size_t | size () const |
Retrieves the total size of the point. | |
T * | ptr () |
Retrieves the pointer on datas. | |
T const * | constPtr () const |
Retrieves a constant pointer on datas. | |
Construction / Destruction. | |
constexpr | Point () noexcept |
constexpr | ~Point () noexcept=default |
constexpr | Point (Point const &rhs) noexcept |
constexpr | Point (Point &&rhs) noexcept |
Point (T const *rhs) noexcept | |
template<typename U , uint32_t UCount> | |
Point (Point< U, UCount > const &rhs) noexcept | |
template<typename U , uint32_t UCount> | |
Point (Coords< U, UCount > const &rhs) noexcept | |
template<typename U > | |
Point (U const *rhs) noexcept | |
template<typename ValueA > | |
constexpr | Point (ValueA a) noexcept |
template<typename ValueA , typename ValueB > | |
constexpr | Point (ValueA a, ValueB b) noexcept |
template<typename ValueA , typename ValueB , typename ValueC > | |
constexpr | Point (ValueA a, ValueB b, ValueC c) noexcept |
template<typename ValueA , typename ValueB , typename ValueC , typename ValueD > | |
constexpr | Point (ValueA a, ValueB b, ValueC c, ValueD d) noexcept |
Assignment operators. | |
constexpr Point & | operator= (Point const &rhs) noexcept |
constexpr Point & | operator= (Point &&rhs) noexcept |
Arithmetic operators. | |
template<typename U , uint32_t UCount> | |
Point & | operator+= (Point< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator-= (Point< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator*= (Point< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator/= (Point< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator+= (Coords< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator-= (Coords< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator*= (Coords< U, UCount > const &rhs) |
template<typename U , uint32_t UCount> | |
Point & | operator/= (Coords< U, UCount > const &rhs) |
template<typename U > | |
Point & | operator+= (U const *rhs) |
template<typename U > | |
Point & | operator-= (U const *rhs) |
template<typename U > | |
Point & | operator*= (U const *rhs) |
template<typename U > | |
Point & | operator/= (U const *rhs) |
Point & | operator+= (T const &rhs) |
Point & | operator-= (T const &rhs) |
Point & | operator*= (T const &rhs) |
Point & | operator/= (T const &rhs) |
T const & | operator[] (uint32_t index) const |
T & | operator[] (uint32_t index) |
iterator | begin () |
const_iterator | begin () const |
const_iterator | end () const |
iterator | end () |
PointData< T, TCount > * | operator-> () |
PointData< T, TCount > const * | operator-> () const |
Friends | |
template<typename U , uint32_t UCount> | |
class | Point |
Templated static dimensions point representation.
using castor::Point< T, TCount >::const_iterator = value_type const * |
Typedef over a constant pointer on data.
using castor::Point< T, TCount >::iterator = value_type * |
Typedef over a pointer on data.
|
constexprnoexcept |
|
constexprdefaultnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitnoexcept |
|
explicitconstexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
constexprnoexcept |
|
inline |
|
inline |
|
inline |
Retrieves a constant pointer on datas.
|
inline |
|
inline |
Point & castor::Point< T, TCount >::operator*= | ( | Coords< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator*= | ( | Point< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator*= | ( | T const & | rhs | ) |
Point & castor::Point< T, TCount >::operator*= | ( | U const * | rhs | ) |
Point & castor::Point< T, TCount >::operator+= | ( | Coords< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator+= | ( | Point< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator+= | ( | T const & | rhs | ) |
Point & castor::Point< T, TCount >::operator+= | ( | U const * | rhs | ) |
Point & castor::Point< T, TCount >::operator-= | ( | Coords< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator-= | ( | Point< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator-= | ( | T const & | rhs | ) |
Point & castor::Point< T, TCount >::operator-= | ( | U const * | rhs | ) |
|
inline |
|
inline |
Point & castor::Point< T, TCount >::operator/= | ( | Coords< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator/= | ( | Point< U, UCount > const & | rhs | ) |
Point & castor::Point< T, TCount >::operator/= | ( | T const & | rhs | ) |
Point & castor::Point< T, TCount >::operator/= | ( | U const * | rhs | ) |
|
constexprnoexcept |
|
constexprnoexcept |
|
inline |
|
inline |
name Array access.
|
inline |
Retrieves the pointer on datas.
|
inline |
Retrieves the total size of the point.
|
noexcept |
Swaps this pont data with the parameter ones.
[in] | rhs | The point to swap |
|
friend |
Array< T, TCount > castor::Point< T, TCount >::coords |
PointData< T, TCount > castor::Point< T, TCount >::data |