Go to the documentation of this file.
4 #ifndef tools_rroot_vector3
5 #define tools_rroot_vector3
17 static const std::string& s_store_class() {
18 static const std::string s_v(
"TVector3");
23 static const std::string s_v(
"tools::rroot::vector3");
27 virtual void*
cast(
const std::string& a_class)
const {
28 if(
void* p = cmp_cast<vector3>(
this,a_class))
return p;
36 if(
void* p = cmp_cast<vector3>(
this,a_class)) {
return p;}
50 if(!a_buffer.
read(m_x))
return false;
51 if(!a_buffer.
read(m_y))
return false;
52 if(!a_buffer.
read(m_z))
return false;
61 mem::increment(
s_class().c_str());
66 mem::decrement(
s_class().c_str());
72 ,m_x(a_from.m_x),m_y(a_from.m_y),m_z(a_from.m_z)
81 double x()
const {
return m_x;}
82 double y()
const {
return m_y;}
83 double z()
const {
return m_z;}