JunkBox_Lib++ (for Windows) 1.10.1
Loading...
Searching...
No Matches
TVector< T > Class Template Reference

#include <TVector.h>

Inheritance diagram for TVector< T >:
Collaboration diagram for TVector< T >:

Public Member Functions

 TVector (T X=0, T Y=0, T Z=0, T W=0, double N=0.0, double C=1.0, int D=0)
 
virtual ~TVector ()
 
void set (T X, T Y=0, T Z=0, T W=0, double N=0.0, double C=1.0, int D=0)
 
void init ()
 
- Public Member Functions inherited from Vector< T >
 Vector (T X=0, T Y=0, T Z=0, double N=0.0, double C=1.0, int D=0)
 
virtual ~Vector (void)
 
norm2 (void)
 
double norm (void)
 
Vector< T > normalize (void)
 
void init (double C=1.0)
 
void set (T X, T Y=0, T Z=0, double N=0.0, double C=1.0, int D=0)
 
T & element1 (void)
 
T & element2 (void)
 
T & element3 (void)
 
T & element (int i)
 
template<typename R >
Vector< T > & operator= (const Vector< R > a)
 

Public Attributes

t
 トレランス.誤差.
 
- Public Attributes inherited from Vector< T >
x
 
y
 
z
 
double n
 ノルム
 
double c
 信頼度
 
int d
 汎用
 

Detailed Description

template<typename T = double>
class jbxl::TVector< T >

template<typename T=double>> class TVector

トレランス付き 3次元ベクトルの定義

Definition at line 26 of file TVector.h.

Constructor & Destructor Documentation

◆ TVector()

template<typename T = double>
TVector ( T X = 0,
T Y = 0,
T Z = 0,
T W = 0,
double N = 0.0,
double C = 1.0,
int D = 0 )
inline

Definition at line 32 of file TVector.h.

32{ set(X, Y, Z, W, N, C, D);}
void set(T X, T Y=0, T Z=0, T W=0, double N=0.0, double C=1.0, int D=0)
Definition TVector.h:45

◆ ~TVector()

template<typename T = double>
virtual ~TVector ( )
inlinevirtual

Definition at line 33 of file TVector.h.

33{}

Member Function Documentation

◆ init()

template<typename T = double>
void init ( )
inline

Definition at line 36 of file TVector.h.

36{ Vector<T>::init(); t = (T)0;}
T t
トレランス.誤差.
Definition TVector.h:29
void init(double C=1.0)
Definition Vector.h:74

◆ set()

template<typename T >
void set ( T X,
T Y = 0,
T Z = 0,
T W = 0,
double N = 0.0,
double C = 1.0,
int D = 0 )

template <typename T> void TVector<T>::set(T X, T Y, T Z, T W, double N)

3次元ベクトルに値をセット.ノルムの計算有り

Definition at line 45 of file TVector.h.

46{
47 Vector<T>::set(X, Y, Z, N, C, D);
48 t = W;
49
50 if (N<=0.0) {
51 Vector<T>::n = (T)sqrt(X*X + Y*Y + Z*Z);
52 }
53}
void set(T X, T Y=0, T Z=0, double N=0.0, double C=1.0, int D=0)
Definition Vector.h:110
double n
ノルム
Definition Vector.h:62

References Vector< T >::set().

Here is the call graph for this function:

Member Data Documentation

◆ t


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