Import Geant4 11.4.0 source tree
This commit is contained in:
@@ -6,8 +6,6 @@
|
||||
|
||||
#include "mat"
|
||||
|
||||
//#include <cmath>
|
||||
|
||||
namespace tools {
|
||||
|
||||
template <class T>
|
||||
@@ -15,11 +13,7 @@ class mat4 : public mat<T,4> {
|
||||
typedef mat<T,4> parent;
|
||||
typedef mat<T,4> pr;
|
||||
public:
|
||||
#ifdef TOOLS_MEM
|
||||
mat4(bool a_inc = true):parent(a_inc) {}
|
||||
#else
|
||||
mat4():parent() {}
|
||||
#endif
|
||||
mat4(const mat<T,4>& a_from):parent(a_from){}
|
||||
virtual ~mat4() {}
|
||||
public:
|
||||
@@ -158,12 +152,6 @@ public:
|
||||
pr::m_vec[14] = 0;
|
||||
}
|
||||
|
||||
//void set_translate_only(const T& a_x,const T& a_y,const T& a_z) {
|
||||
// pr::m_vec[12] = a_x;
|
||||
// pr::m_vec[13] = a_y;
|
||||
// pr::m_vec[14] = a_z;
|
||||
//}
|
||||
|
||||
public:
|
||||
void mul_4(T& a_x,T& a_y,T& a_z,T& a_p) const {
|
||||
// a_[x,y,z,p] = this * a_[x,y,z,p]
|
||||
@@ -513,21 +501,7 @@ private:static void check_instantiation() {mat4<float> dummy;}
|
||||
/// common matrices : //////////////////////////
|
||||
////////////////////////////////////////////////
|
||||
|
||||
#ifdef TOOLS_MEM
|
||||
template <class T> inline const mat4<T>& mat4_zero() {static const mat4<T> s_v(false);return s_v;}
|
||||
#else
|
||||
template <class T> inline const mat4<T>& mat4_zero() {static const mat4<T> s_v;return s_v;}
|
||||
#endif
|
||||
|
||||
/*
|
||||
template <class T>
|
||||
inline const mat4<T>& mat4_identity() {
|
||||
static mat4<T> s_v(false);
|
||||
static bool s_first = true;
|
||||
if(s_first) {s_v.set_identity();s_first=false;}
|
||||
return s_v;
|
||||
}
|
||||
*/
|
||||
|
||||
//for sf, mf :
|
||||
template <class T>
|
||||
|
||||
Reference in New Issue
Block a user