#include <TVector.h>
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 | t |
トレランス |
template<typename t="double"> class TVector
トレランス付き 3次元ベクトルの定義
Definition at line 27 of file TVector.h.
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] |
void init | ( | void | ) | [inline] |
Definition at line 37 of file TVector.h.
00037 { Vector<T>::init(); t = (T)0;}
void set | ( | T | X, | |
T | Y = 0 , |
|||
T | Z = 0 , |
|||
T | 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 }
T t |
Definition at line 30 of file TVector.h.
Referenced by jbxl::CollisionTriContour3D(), jbxl::IsInTriangle(), jbxl::operator!=(), jbxl::operator*(), jbxl::operator+(), jbxl::operator-(), jbxl::operator/(), jbxl::operator==(), jbxl::operator^(), jbxl::ProportionVector(), TVector< T >::set(), jbxl::TVectorMultiTolerance(), and jbxl::Vertex2TVector().