alternative Standard Libary  0.29.8
std::math::vector2< T > Template-Klassenreferenz

#include <vector2.hpp>

+ Klassendiagramm für std::math::vector2< T >:
+ Zusammengehörigkeiten von std::math::vector2< T >:

Öffentliche Typen

using value_type = T
 
using self_type = vector2< T >
 
using pointer = T *
 

Öffentliche Methoden

 vector2 ()
 
 vector2 (value_type _x, value_type _y)
 
 vector2 (value_type _f)
 
 vector2 (const vector2 &vec)
 
 vector2 (const pointer lpvec)
 
 operator pointer ()
 
 operator void * ()
 
self_typeoperator= (const self_type &v)
 
self_typeoperator+= (const self_type &v)
 
self_typeoperator-= (const self_type &v)
 
self_typeoperator*= (const self_type &v)
 
self_typeoperator/= (const self_type &v)
 
self_typeoperator/= (const value_type &f)
 
self_typeoperator*= (const value_type &f)
 
template<typename E = char, class TAllocator = std::allocator, typename TStorage = std::simple_string_storage<E, TAllocator>>
std::basic_string< E, TAllocator, TStorage > to_string ()
 

Öffentliche Attribute

union {
   struct {
      value_type   x
 
      value_type   y
 
   } 
 
   value_type   c [2]
 
}; 
 

Ausführliche Beschreibung

template<typename T>
class std::math::vector2< T >

Dokumentation der benutzerdefinierten Datentypen

◆ pointer

template<typename T>
using std::math::vector2< T >::pointer = T*

◆ self_type

template<typename T>
using std::math::vector2< T >::self_type = vector2<T>

◆ value_type

template<typename T>
using std::math::vector2< T >::value_type = T

Beschreibung der Konstruktoren und Destruktoren

◆ vector2() [1/5]

template<typename T>
std::math::vector2< T >::vector2 ( )
inline
72 {}

◆ vector2() [2/5]

template<typename T>
std::math::vector2< T >::vector2 ( value_type  _x,
value_type  _y 
)
inline
73 : x(_x), y(_y) {}
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ vector2() [3/5]

template<typename T>
std::math::vector2< T >::vector2 ( value_type  _f)
inline
74 : x(_f), y(_f) {}
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ vector2() [4/5]

template<typename T>
std::math::vector2< T >::vector2 ( const vector2< T > &  vec)
inline
75 : x(vec.x), y(vec.y) {}
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ vector2() [5/5]

template<typename T>
std::math::vector2< T >::vector2 ( const pointer  lpvec)
inline
76 : x(lpvec[0]), y(lpvec[1]) {}
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

Dokumentation der Elementfunktionen

◆ operator pointer()

template<typename T>
std::math::vector2< T >::operator pointer ( )
inline
78 { return (pointer)(c); }
T * pointer
Definition: vector2.hpp:58
value_type c[2]
Definition: vector2.hpp:67

◆ operator void *()

template<typename T>
std::math::vector2< T >::operator void * ( )
inline
79 { return (void*)(c); }
value_type c[2]
Definition: vector2.hpp:67

◆ operator*=() [1/2]

template<typename T>
self_type& std::math::vector2< T >::operator*= ( const self_type v)
inline
87  {
88  x *= v.x; y *= v.y; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator*=() [2/2]

template<typename T>
self_type& std::math::vector2< T >::operator*= ( const value_type f)
inline
94  {
95  x *= f; y *= f; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator+=()

template<typename T>
self_type& std::math::vector2< T >::operator+= ( const self_type v)
inline
83  {
84  x += v.x; y += v.y; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator-=()

template<typename T>
self_type& std::math::vector2< T >::operator-= ( const self_type v)
inline
85  {
86  x -= v.x; y -= v.y; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator/=() [1/2]

template<typename T>
self_type& std::math::vector2< T >::operator/= ( const self_type v)
inline
89  {
90  x /= v.x; y /= v.y; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator/=() [2/2]

template<typename T>
self_type& std::math::vector2< T >::operator/= ( const value_type f)
inline
92  {
93  x /= f; y /= f; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ operator=()

template<typename T>
self_type& std::math::vector2< T >::operator= ( const self_type v)
inline
81  {
82  x = v.x; y = v.y; return *this; }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

◆ to_string()

template<typename T>
template<typename E = char, class TAllocator = std::allocator, typename TStorage = std::simple_string_storage<E, TAllocator>>
std::basic_string<E, TAllocator, TStorage> std::math::vector2< T >::to_string ( )
inline
98  {
99  return std::frmstring<E, TAllocator, TStorage>("{ %.3f %.3f }", x, y ); }
value_type y
Definition: vector2.hpp:65
value_type x
Definition: vector2.hpp:64

Dokumentation der Datenelemente

◆ @30

union { ... }

◆ c

template<typename T>
value_type std::math::vector2< T >::c[2]

◆ x

template<typename T>
value_type std::math::vector2< T >::x

◆ y

template<typename T>
value_type std::math::vector2< T >::y

Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: