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

#include <vector3.hpp>

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

Öffentliche Typen

typedef T value_type
 
typedef vector3< T > self_type
 
typedef T * pointer
 

Öffentliche Methoden

 vector3 ()
 
 vector3 (value_type _x, value_type _y, value_type _z)
 
 vector3 (value_type _f)
 
 vector3 (const self_type &vec)
 
 vector3 (const vector2< T > &vec)
 
 vector3 (const pointer lpvec)
 
 operator pointer ()
 
 operator void * ()
 
self_typeoperator= (const self_type &v)
 
self_typeoperator= (const vector2< T > &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   z
 
   } 
 
   value_type   c [3]
 
}; 
 

Ausführliche Beschreibung

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

Dokumentation der benutzerdefinierten Datentypen

◆ pointer

template<typename T>
typedef T* std::math::vector3< T >::pointer

◆ self_type

template<typename T>
typedef vector3<T> std::math::vector3< T >::self_type

◆ value_type

template<typename T>
typedef T std::math::vector3< T >::value_type

Beschreibung der Konstruktoren und Destruktoren

◆ vector3() [1/6]

template<typename T>
std::math::vector3< T >::vector3 ( )
inline
65 {}

◆ vector3() [2/6]

template<typename T>
std::math::vector3< T >::vector3 ( value_type  _x,
value_type  _y,
value_type  _z 
)
inline
66 : x(_x), y(_y), z(_z) {}
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ vector3() [3/6]

template<typename T>
std::math::vector3< T >::vector3 ( value_type  _f)
inline
67 : x(_f), y(_f), z(_f) {}
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ vector3() [4/6]

template<typename T>
std::math::vector3< T >::vector3 ( const self_type vec)
inline
68 : x(vec.x), y(vec.y), z(vec.z) {}
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ vector3() [5/6]

template<typename T>
std::math::vector3< T >::vector3 ( const vector2< T > &  vec)
inline
69 : x(vec.x), y(vec.y), z(0) {}
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ vector3() [6/6]

template<typename T>
std::math::vector3< T >::vector3 ( const pointer  lpvec)
inline
70 : x(lpvec[0]), y(lpvec[1]), z(lpvec(2)) {}
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

Dokumentation der Elementfunktionen

◆ operator pointer()

template<typename T>
std::math::vector3< T >::operator pointer ( )
inline
72 { return (pointer)(c); }
T * pointer
Definition: vector3.hpp:53
value_type c[3]
Definition: vector3.hpp:63

◆ operator void *()

template<typename T>
std::math::vector3< T >::operator void * ( )
inline
73 { return (void*)(c); }
value_type c[3]
Definition: vector3.hpp:63

◆ operator*=() [1/2]

template<typename T>
self_type& std::math::vector3< T >::operator*= ( const self_type v)
inline
83  {
84  x *= v.x; y *= v.y; z *= v.z; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator*=() [2/2]

template<typename T>
self_type& std::math::vector3< T >::operator*= ( const value_type f)
inline
90  {
91  x *= f; y *= f; z *= f; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator+=()

template<typename T>
self_type& std::math::vector3< T >::operator+= ( const self_type v)
inline
79  {
80  x += v.x; y += v.y; z += v.z; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator-=()

template<typename T>
self_type& std::math::vector3< T >::operator-= ( const self_type v)
inline
81  {
82  x -= v.x; y -= v.y; z -= v.z; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator/=() [1/2]

template<typename T>
self_type& std::math::vector3< T >::operator/= ( const self_type v)
inline
85  {
86  x /= v.x; y /= v.y; z /= v.z; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator/=() [2/2]

template<typename T>
self_type& std::math::vector3< T >::operator/= ( const value_type f)
inline
88  {
89  x /= f; y /= f; z /= f; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator=() [1/2]

template<typename T>
self_type& std::math::vector3< T >::operator= ( const self_type v)
inline
75  {
76  x = v.x; y = v.y; z = v.z; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ operator=() [2/2]

template<typename T>
self_type& std::math::vector3< T >::operator= ( const vector2< T > &  v)
inline
77  {
78  x = v.x; y = v.y; z = 0; return *this; }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

◆ 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::vector3< T >::to_string ( )
inline
94  {
95  return std::frmstring<E, TAllocator, TStorage>("{ %.3f %.3f %.3f }",
96  x, y, z ); }
value_type z
Definition: vector3.hpp:61
value_type y
Definition: vector3.hpp:60
value_type x
Definition: vector3.hpp:59

Dokumentation der Datenelemente

◆ @34

union { ... }

◆ c

template<typename T>
value_type std::math::vector3< T >::c[3]

◆ x

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

◆ y

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

◆ z

template<typename T>
value_type std::math::vector3< T >::z

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