Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -17,11 +17,7 @@ public:
|
||||
public:
|
||||
vec4f():parent() {}
|
||||
vec4f(const float a_vec[4]):parent(a_vec) {}
|
||||
#ifdef TOOLS_MEM
|
||||
vec4f(const float& a0,const float& a1,const float& a2,const float& a3,bool a_inc = true):parent(a0,a1,a2,a3,a_inc){}
|
||||
#else
|
||||
vec4f(const float& a0,const float& a1,const float& a2,const float& a3):parent(a0,a1,a2,a3){}
|
||||
#endif
|
||||
virtual ~vec4f() {}
|
||||
public:
|
||||
vec4f(const vec4f& a_from):parent(a_from){}
|
||||
@@ -66,8 +62,6 @@ public: //operators
|
||||
return vec4f(-m_data[0],-m_data[1],-m_data[2],-m_data[3]);
|
||||
}
|
||||
public:
|
||||
#define TOOLS_VEC4F_MORE_PREC
|
||||
#ifdef TOOLS_VEC4F_MORE_PREC
|
||||
float length() const {
|
||||
return float(::sqrt(m_data[0]*m_data[0]+m_data[1]*m_data[1]+m_data[2]*m_data[2]+m_data[3]*m_data[3]));
|
||||
}
|
||||
@@ -77,10 +71,6 @@ public:
|
||||
divide(norme);
|
||||
return norme;
|
||||
}
|
||||
#else
|
||||
float length() const {return parent::length(::sqrtf);}
|
||||
float normalize() {return parent::normalize(::sqrtf);}
|
||||
#endif
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user