OpenLexocad  27.1
Vector3D.h File Reference
#include <cmath>
#include <cfloat>

Go to the source code of this file.

Classes

struct  Base::float_traits< numT >
 
struct  Base::float_traits< float >
 
struct  Base::float_traits< double >
 
class  Base::Vector3< _Precision >
 

Namespaces

 Base
 

Macros

#define F_PI   3.1415926f
 
#define D_PI   3.141592653589793
 
#define FLOAT_MAX   3.402823466E+38F
 
#define FLOAT_MIN   1.175494351E-38F
 
#define DOUBLE_MAX   1.7976931348623157E+308 /* max decimal value of a "double"*/
 
#define DOUBLE_MIN   2.2250738585072014E-308 /* min decimal value of a "double"*/
 

Typedefs

typedef Vector3< float > Base::Vector3f
 
typedef Vector3< double > Base::Vector3d
 

Functions

template<class _Precision >
_Precision Base::Distance (const Vector3< _Precision > &v1, const Vector3< _Precision > &v2)
 Returns the distance between two points. More...
 
template<class _Precision >
_Precision Base::DistanceP2 (const Vector3< _Precision > &v1, const Vector3< _Precision > &v2)
 Returns the squared distance between two points. More...
 
template<class _Precision >
Vector3< _Precision > Base::operator * (_Precision fFac, const Vector3< _Precision > &rcVct)
 Multiplication of scalar with vector. More...
 
template<class _Pr1 , class _Pr2 >
Vector3< _Pr1 > Base::toVector (const Vector3< _Pr2 > &v)
 

Macro Definition Documentation

◆ D_PI

#define D_PI   3.141592653589793

◆ DOUBLE_MAX

#define DOUBLE_MAX   1.7976931348623157E+308 /* max decimal value of a "double"*/

◆ DOUBLE_MIN

#define DOUBLE_MIN   2.2250738585072014E-308 /* min decimal value of a "double"*/

◆ F_PI

#define F_PI   3.1415926f

◆ FLOAT_MAX

#define FLOAT_MAX   3.402823466E+38F

◆ FLOAT_MIN

#define FLOAT_MIN   1.175494351E-38F