sisi4s
Loading...
Searching...
No Matches
sisi4s::Vector< F, D > Class Template Reference

#include <Vector.hpp>

Collaboration diagram for sisi4s::Vector< F, D >:

Public Types

typedef F FieldType
 

Public Member Functions

 Vector ()
 
 Vector (Vector< F, D > const &v)
 
Vector< F, D > & operator= (Vector< F, D > const &v)
 
Vector< F, D > & operator+= (Vector< F, D > const &v)
 
Vector< F, D > & operator-= (Vector< F, D > const &v)
 
Vector< F, D > & operator*= (const F r)
 
Vector< F, D > & operator/= (const F r)
 
Vector< F, D > operator+ (Vector< F, D > const &v) const
 
Vector< F, D > operator- (Vector< F, D > const &v) const
 
Vector< F, D > operator/ (const F r) const
 
Vector< F, D > operator* (const F r) const
 
Vector< F, 3 > cross (Vector< F, 3 > const &v)
 
dot (Vector< F, D > const &v) const
 
int approximately (Vector< F, D > const &v, const double epsilon=1e-10) const
 
double distance (Vector< F, D > const &v) const
 
double length () const
 
operator[] (int d) const
 
F & operator[] (int d)
 
at (int d) const
 
F & at (int d)
 
bool operator< (Vector< F, D > const &v) const
 

Static Public Member Functions

static bool sortByLength (Vector< F, D > const &n, Vector< F, D > const &m)
 

Public Attributes

coordinate [D]
 

Member Typedef Documentation

◆ FieldType

template<typename F = double, int D = 3>
typedef F sisi4s::Vector< F, D >::FieldType

Constructor & Destructor Documentation

◆ Vector() [1/2]

template<typename F = double, int D = 3>
sisi4s::Vector< F, D >::Vector ( )
inline

◆ Vector() [2/2]

template<typename F = double, int D = 3>
sisi4s::Vector< F, D >::Vector ( Vector< F, D > const &  v)
inline

Member Function Documentation

◆ approximately()

template<typename F = double, int D = 3>
int sisi4s::Vector< F, D >::approximately ( Vector< F, D > const &  v,
const double  epsilon = 1e-10 
) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ at() [1/2]

template<typename F = double, int D = 3>
F & sisi4s::Vector< F, D >::at ( int  d)
inline

◆ at() [2/2]

template<typename F = double, int D = 3>
F sisi4s::Vector< F, D >::at ( int  d) const
inline

◆ cross()

template<typename F = double, int D = 3>
Vector< F, 3 > sisi4s::Vector< F, D >::cross ( Vector< F, 3 > const &  v)
inline
Here is the caller graph for this function:

◆ distance()

template<typename F = double, int D = 3>
double sisi4s::Vector< F, D >::distance ( Vector< F, D > const &  v) const
inline
Here is the call graph for this function:

◆ dot()

template<typename F = double, int D = 3>
F sisi4s::Vector< F, D >::dot ( Vector< F, D > const &  v) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ length()

template<typename F = double, int D = 3>
double sisi4s::Vector< F, D >::length ( ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator*()

template<typename F = double, int D = 3>
Vector< F, D > sisi4s::Vector< F, D >::operator* ( const F  r) const
inline

◆ operator*=()

template<typename F = double, int D = 3>
Vector< F, D > & sisi4s::Vector< F, D >::operator*= ( const F  r)
inline

◆ operator+()

template<typename F = double, int D = 3>
Vector< F, D > sisi4s::Vector< F, D >::operator+ ( Vector< F, D > const &  v) const
inline

◆ operator+=()

template<typename F = double, int D = 3>
Vector< F, D > & sisi4s::Vector< F, D >::operator+= ( Vector< F, D > const &  v)
inline

◆ operator-()

template<typename F = double, int D = 3>
Vector< F, D > sisi4s::Vector< F, D >::operator- ( Vector< F, D > const &  v) const
inline

◆ operator-=()

template<typename F = double, int D = 3>
Vector< F, D > & sisi4s::Vector< F, D >::operator-= ( Vector< F, D > const &  v)
inline

◆ operator/()

template<typename F = double, int D = 3>
Vector< F, D > sisi4s::Vector< F, D >::operator/ ( const F  r) const
inline

◆ operator/=()

template<typename F = double, int D = 3>
Vector< F, D > & sisi4s::Vector< F, D >::operator/= ( const F  r)
inline

◆ operator<()

template<typename F = double, int D = 3>
bool sisi4s::Vector< F, D >::operator< ( Vector< F, D > const &  v) const
inline

◆ operator=()

template<typename F = double, int D = 3>
Vector< F, D > & sisi4s::Vector< F, D >::operator= ( Vector< F, D > const &  v)
inline

◆ operator[]() [1/2]

template<typename F = double, int D = 3>
F & sisi4s::Vector< F, D >::operator[] ( int  d)
inline

◆ operator[]() [2/2]

template<typename F = double, int D = 3>
F sisi4s::Vector< F, D >::operator[] ( int  d) const
inline

◆ sortByLength()

template<typename F = double, int D = 3>
static bool sisi4s::Vector< F, D >::sortByLength ( Vector< F, D > const &  n,
Vector< F, D > const &  m 
)
inlinestatic
Here is the call graph for this function:

Member Data Documentation

◆ coordinate

template<typename F = double, int D = 3>
F sisi4s::Vector< F, D >::coordinate[D]

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