NetDEM v1.0
Loading...
Searching...
No Matches
netdem::Math Class Reference

#include <utils_math.hpp>

Classes

class  Quaternion
 

Static Public Member Functions

template<typename T >
static int Sign (T val)
 
static double NormL2 (Vec2d const &val)
 
static double NormL2 (Vec3d const &val)
 
static double NormL2 (double val_0, double val_1)
 
static double NormL2 (double val_0, double val_1, double val_2)
 
static double NormL2 (double val_0, double val_1, double val_2, double val_3)
 
template<size_t N>
static double NormL2 (VecNd< N > const &val)
 
static double NormL2 (VecXd const &val)
 
static double Determinant (Mat2d const &mat)
 
static double Determinant (Mat3d const &mat)
 
static Mat2d Inverse (Mat2d const &m_val)
 
static Mat3d Inverse (Mat3d const &m_val)
 
template<size_t r, size_t cr, size_t c>
static MatNd< r, c > Dot (MatNd< r, cr > const &m_1, MatNd< cr, c > const &m_2)
 
template<size_t r, size_t cr, size_t c>
static MatNd< r, c > DotTransportLHS (MatNd< cr, r > const &m_1, MatNd< cr, c > const &m_2)
 
template<size_t r, size_t cr, size_t c>
static MatNd< r, c > DotTransportRHS (MatNd< r, cr > const &m_1, MatNd< c, cr > const &m_2)
 
static Vec3d Cross (Vec3d const &val_1, Vec3d const &val_2)
 
static double Dot (Vec3d const &val_1, Vec3d const &val_2)
 
static double Dot (VecXT< double > const &val_1, VecXT< double > const &val_2)
 
static void Normalize (Vec3d *const val)
 
static Vec3d Rotate (Vec3d const &val_old, double rot_angle_cos, double rot_angle_sin, Vec3d const &rot_axis)
 
static Vec3d Rotate (Vec3d const &val_old, double rot_angle, Vec3d const &rot_axis)
 
static Vec3d Rotate (Vec3d const &val_old, Vec4d const &quat)
 
static Vec3d Rotate (Vec3d const &val_old, Mat3d const &rot_mat)
 
static Vec3d CartesianToSpherical (Vec3d const &vert_cart)
 
static Vec3d SphericalToCartesian (Vec3d const &vert_sph)
 

Static Public Attributes

static constexpr double PI = 3.1415926535897932384626433832795028841971
 
static constexpr double Infinity = 1.0e15
 

Member Function Documentation

◆ CartesianToSpherical()

Vec3d netdem::Math::CartesianToSpherical ( Vec3d const & vert_cart)
static

◆ Cross()

Vec3d netdem::Math::Cross ( Vec3d const & val_1,
Vec3d const & val_2 )
static

◆ Determinant() [1/2]

double netdem::Math::Determinant ( Mat2d const & mat)
static

◆ Determinant() [2/2]

double netdem::Math::Determinant ( Mat3d const & mat)
static

◆ Dot() [1/3]

template<size_t r, size_t cr, size_t c>
MatNd< r, c > netdem::Math::Dot ( MatNd< r, cr > const & m_1,
MatNd< cr, c > const & m_2 )
static

◆ Dot() [2/3]

double netdem::Math::Dot ( Vec3d const & val_1,
Vec3d const & val_2 )
static

◆ Dot() [3/3]

double netdem::Math::Dot ( VecXT< double > const & val_1,
VecXT< double > const & val_2 )
static

◆ DotTransportLHS()

template<size_t r, size_t cr, size_t c>
MatNd< r, c > netdem::Math::DotTransportLHS ( MatNd< cr, r > const & m_1,
MatNd< cr, c > const & m_2 )
static

◆ DotTransportRHS()

template<size_t r, size_t cr, size_t c>
MatNd< r, c > netdem::Math::DotTransportRHS ( MatNd< r, cr > const & m_1,
MatNd< c, cr > const & m_2 )
static

◆ Inverse() [1/2]

Mat2d netdem::Math::Inverse ( Mat2d const & m_val)
static

◆ Inverse() [2/2]

Mat3d netdem::Math::Inverse ( Mat3d const & m_val)
static

◆ Normalize()

void netdem::Math::Normalize ( Vec3d *const val)
static

◆ NormL2() [1/7]

double netdem::Math::NormL2 ( double val_0,
double val_1 )
static

◆ NormL2() [2/7]

double netdem::Math::NormL2 ( double val_0,
double val_1,
double val_2 )
static

◆ NormL2() [3/7]

double netdem::Math::NormL2 ( double val_0,
double val_1,
double val_2,
double val_3 )
static

◆ NormL2() [4/7]

double netdem::Math::NormL2 ( Vec2d const & val)
static

◆ NormL2() [5/7]

double netdem::Math::NormL2 ( Vec3d const & val)
static

◆ NormL2() [6/7]

template<size_t N>
double netdem::Math::NormL2 ( VecNd< N > const & val)
static

◆ NormL2() [7/7]

double netdem::Math::NormL2 ( VecXd const & val)
static

◆ Rotate() [1/4]

Vec3d netdem::Math::Rotate ( Vec3d const & val_old,
double rot_angle,
Vec3d const & rot_axis )
static

◆ Rotate() [2/4]

Vec3d netdem::Math::Rotate ( Vec3d const & val_old,
double rot_angle_cos,
double rot_angle_sin,
Vec3d const & rot_axis )
static

◆ Rotate() [3/4]

Vec3d netdem::Math::Rotate ( Vec3d const & val_old,
Mat3d const & rot_mat )
static

◆ Rotate() [4/4]

Vec3d netdem::Math::Rotate ( Vec3d const & val_old,
Vec4d const & quat )
static

◆ Sign()

template<typename T >
int netdem::Math::Sign ( T val)
static

◆ SphericalToCartesian()

Vec3d netdem::Math::SphericalToCartesian ( Vec3d const & vert_sph)
static

Member Data Documentation

◆ Infinity

double netdem::Math::Infinity = 1.0e15
staticconstexpr

◆ PI

double netdem::Math::PI = 3.1415926535897932384626433832795028841971
staticconstexpr

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