TVector< T > Class Template Reference

#include <TVector.h>

Inheritance diagram for TVector< T >:
Inheritance graph
[legend]
Collaboration diagram for TVector< T >:
Collaboration graph
[legend]

List of all members.

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 Attributes

t
 トレランス

Detailed Description

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

template<typename t="double"> class TVector

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

Definition at line 27 of file TVector.h.


Constructor & Destructor Documentation

TVector ( X = 0,
Y = 0,
Z = 0,
W = 0,
double  N = 0.0,
double  C = 1.0,
int  D = 0 
) [inline]

Definition at line 33 of file TVector.h.

00033 { set(X, Y, Z, W, N, C, D);}

virtual ~TVector (  )  [inline, virtual]

Definition at line 34 of file TVector.h.

00034 {}


Member Function Documentation

void init ( void   )  [inline]

Definition at line 37 of file TVector.h.

00037 { Vector<T>::init(); t = (T)0;}

void set ( X,
Y = 0,
Z = 0,
W = 0,
double  N = 0.0,
double  C = 1.0,
int  D = 0 
) [inline]

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

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

Definition at line 47 of file TVector.h.

References TVector< T >::t.

00048 {
00049     Vector<T>::set(X, Y, Z, N, C, D);
00050     t = W;
00051 
00052     if (N<=0.0) {
00053         Vector<T>::n = (T)sqrt(X*X + Y*Y + Z*Z);
00054     }
00055 }


Member Data Documentation

T t

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

Generated on 15 Nov 2023 for JunkBox_Lib++ (for Windows) by  doxygen 1.6.1