PeriDyno 1.0.0
Loading...
Searching...
No Matches
dyno::Vector< T, 4 > Class Template Reference

#include <Vector4D.h>

Collaboration diagram for dyno::Vector< T, 4 >:

Public Types

typedef T VarType
 

Public Member Functions

DYN_FUNC Vector ()
 
DYN_FUNC Vector (T)
 
DYN_FUNC Vector (T x, T y, T z, T w)
 
DYN_FUNC Vector (const Vector< T, 4 > &)
 
DYN_FUNC ~Vector ()
 
DYN_FUNC Toperator[] (unsigned int)
 
DYN_FUNC const Toperator[] (unsigned int) const
 
DYN_FUNC const Vector< T, 4 > operator+ (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > & operator+= (const Vector< T, 4 > &)
 
DYN_FUNC const Vector< T, 4 > operator- (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > & operator-= (const Vector< T, 4 > &)
 
DYN_FUNC const Vector< T, 4 > operator* (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > & operator*= (const Vector< T, 4 > &)
 
DYN_FUNC const Vector< T, 4 > operator/ (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > & operator/= (const Vector< T, 4 > &)
 
DYN_FUNC Vector< T, 4 > & operator= (const Vector< T, 4 > &)
 
DYN_FUNC bool operator== (const Vector< T, 4 > &) const
 
DYN_FUNC bool operator!= (const Vector< T, 4 > &) const
 
DYN_FUNC const Vector< T, 4 > operator+ (T) const
 
DYN_FUNC const Vector< T, 4 > operator- (T) const
 
DYN_FUNC const Vector< T, 4 > operator* (T) const
 
DYN_FUNC const Vector< T, 4 > operator/ (T) const
 
DYN_FUNC Vector< T, 4 > & operator+= (T)
 
DYN_FUNC Vector< T, 4 > & operator-= (T)
 
DYN_FUNC Vector< T, 4 > & operator*= (T)
 
DYN_FUNC Vector< T, 4 > & operator/= (T)
 
DYN_FUNC const Vector< T, 4 > operator- (void) const
 
DYN_FUNC T norm () const
 
DYN_FUNC T normSquared () const
 
DYN_FUNC Vector< T, 4 > & normalize ()
 
DYN_FUNC T dot (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > minimum (const Vector< T, 4 > &) const
 
DYN_FUNC Vector< T, 4 > maximum (const Vector< T, 4 > &) const
 
DYN_FUNC TgetDataPtr ()
 
DYN_FUNC Vector ()
 
DYN_FUNC ~Vector ()
 

Static Public Member Functions

static DYN_FUNC int dims ()
 

Public Attributes

union dyno::Vector< T, 4 >:: { ... }  
 

Friends

std::ostream & operator<< (std::ostream &out, const Vector< T, 4 > &vec)
 

Detailed Description

template<typename T>
class dyno::Vector< T, 4 >

Definition at line 16 of file Vector4D.h.

Member Typedef Documentation

◆ VarType

template<typename T>
typedef T dyno::Vector< T, 4 >::VarType

Definition at line 19 of file Vector4D.h.

Constructor & Destructor Documentation

◆ Vector() [1/5]

template<typename T>
DYN_FUNC dyno::Vector< T, 4 >::Vector ( )

Definition at line 7 of file Vector4D.inl.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Vector() [2/5]

template<typename T>
DYN_FUNC dyno::Vector< T, 4 >::Vector ( T x)
explicit

Definition at line 13 of file Vector4D.inl.

Here is the call graph for this function:

◆ Vector() [3/5]

template<typename T>
DYN_FUNC dyno::Vector< T, 4 >::Vector ( T x,
T y,
T z,
T w )

Definition at line 19 of file Vector4D.inl.

◆ Vector() [4/5]

template<typename T>
DYN_FUNC dyno::Vector< T, 4 >::Vector ( const Vector< T, 4 > & vec2)

Definition at line 25 of file Vector4D.inl.

Here is the call graph for this function:

◆ ~Vector() [1/2]

template<typename T>
DYN_FUNC dyno::Vector< T, 4 >::~Vector ( )

Definition at line 32 of file Vector4D.inl.

◆ Vector() [5/5]

DYN_FUNC dyno::Vector< T >::Vector ( )
inline

Definition at line 26 of file VectorBase.h.

◆ ~Vector() [2/2]

DYN_FUNC dyno::Vector< T >::~Vector ( )
inline

Definition at line 27 of file VectorBase.h.

Member Function Documentation

◆ dims()

template<typename T>
static DYN_FUNC int dyno::Vector< T, 4 >::dims ( )
inlinestatic

Definition at line 27 of file Vector4D.h.

◆ dot()

template<typename T>
DYN_FUNC T dyno::Vector< T, 4 >::dot ( const Vector< T, 4 > & vec2) const

Definition at line 204 of file Vector4D.inl.

Here is the call graph for this function:

◆ getDataPtr()

template<typename T>
DYN_FUNC T * dyno::Vector< T, 4 >::getDataPtr ( )
inline

Definition at line 67 of file Vector4D.h.

◆ maximum()

template<typename T>
DYN_FUNC Vector< T, 4 > dyno::Vector< T, 4 >::maximum ( const Vector< T, 4 > & vec2) const

Definition at line 221 of file Vector4D.inl.

Here is the call graph for this function:

◆ minimum()

template<typename T>
DYN_FUNC Vector< T, 4 > dyno::Vector< T, 4 >::minimum ( const Vector< T, 4 > & vec2) const

Definition at line 210 of file Vector4D.inl.

Here is the call graph for this function:

◆ norm()

template<typename T>
DYN_FUNC T dyno::Vector< T, 4 >::norm ( ) const

Definition at line 185 of file Vector4D.inl.

Here is the call graph for this function:

◆ normalize()

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::normalize ( )

Definition at line 197 of file Vector4D.inl.

Here is the call graph for this function:

◆ normSquared()

template<typename T>
DYN_FUNC T dyno::Vector< T, 4 >::normSquared ( ) const

Definition at line 191 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator!=()

template<typename T>
DYN_FUNC bool dyno::Vector< T, 4 >::operator!= ( const Vector< T, 4 > & vec2) const

Definition at line 119 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator*() [1/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator* ( const Vector< T, 4 > & vec2) const

Definition at line 80 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator*() [2/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator* ( T scale) const

Definition at line 151 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator*=() [1/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator*= ( const Vector< T, 4 > & vec2)

Definition at line 86 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator*=() [2/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator*= ( T scale)

Definition at line 157 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator+() [1/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator+ ( const Vector< T, 4 > & vec2) const

Definition at line 54 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator+() [2/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator+ ( T value) const

Definition at line 125 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator+=() [1/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator+= ( const Vector< T, 4 > & vec2)

Definition at line 60 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator+=() [2/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator+= ( T value)

Definition at line 131 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator-() [1/3]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator- ( const Vector< T, 4 > & vec2) const

Definition at line 67 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator-() [2/3]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator- ( T value) const

Definition at line 138 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator-() [3/3]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator- ( void ) const

Definition at line 177 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator-=() [1/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator-= ( const Vector< T, 4 > & vec2)

Definition at line 73 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator-=() [2/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator-= ( T value)

Definition at line 144 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator/() [1/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator/ ( const Vector< T, 4 > & vec2) const

Definition at line 93 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator/() [2/2]

template<typename T>
DYN_FUNC const Vector< T, 4 > dyno::Vector< T, 4 >::operator/ ( T scale) const

Definition at line 164 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator/=() [1/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator/= ( const Vector< T, 4 > & vec2)

Definition at line 99 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator/=() [2/2]

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator/= ( T scale)

Definition at line 170 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator=()

template<typename T>
DYN_FUNC Vector< T, 4 > & dyno::Vector< T, 4 >::operator= ( const Vector< T, 4 > & vec2)

Definition at line 106 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator==()

template<typename T>
DYN_FUNC bool dyno::Vector< T, 4 >::operator== ( const Vector< T, 4 > & vec2) const

Definition at line 113 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator[]() [1/2]

template<typename T>
DYN_FUNC T & dyno::Vector< T, 4 >::operator[] ( unsigned int idx)

Definition at line 38 of file Vector4D.inl.

Here is the call graph for this function:

◆ operator[]() [2/2]

template<typename T>
DYN_FUNC const T & dyno::Vector< T, 4 >::operator[] ( unsigned int idx) const

Definition at line 44 of file Vector4D.inl.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ operator<<

template<typename T>
std::ostream & operator<< ( std::ostream & out,
const Vector< T, 4 > & vec )
friend

Definition at line 69 of file Vector4D.h.

Member Data Documentation

◆ []

union dyno::Vector< T, 4 > { ... } dyno::Vector< T, 4 >

◆ data_

template<typename T>
glm::tvec4<T> dyno::Vector< T, 4 >::data_

Definition at line 77 of file Vector4D.h.

◆ w

template<typename T>
T dyno::Vector< T, 4 >::w

Definition at line 78 of file Vector4D.h.

◆ x

template<typename T>
T dyno::Vector< T, 4 >::x

Definition at line 78 of file Vector4D.h.

◆ y

template<typename T>
T dyno::Vector< T, 4 >::y

Definition at line 78 of file Vector4D.h.

◆ z

template<typename T>
T dyno::Vector< T, 4 >::z

Definition at line 78 of file Vector4D.h.


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