Warning, /include/Geant4/tools/sg/sf_vec3f is written in an unsupported language. File is not indexed.
0001 // Copyright (C) 2010, Guy Barrand. All rights reserved.
0002 // See the file tools.license for terms.
0003
0004 #ifndef tools_sg_sf_vec3f
0005 #define tools_sg_sf_vec3f
0006
0007 #include "sf_vec"
0008
0009 #include "../lina/vec3f"
0010 #include "../HEADER"
0011 namespace tools {
0012 namespace sg {
0013
0014 class sf_vec3f : public sf_vec<vec3f,float> {
0015 typedef sf_vec<vec3f,float> _parent;
0016 TOOLS_HEADER(sf_vec3f,tools::sg::sf_vec3f,_parent)
0017 public:
0018 sf_vec3f():parent(){}
0019 sf_vec3f(const vec3f& a_v):parent(a_v){}
0020 virtual ~sf_vec3f(){}
0021 public:
0022 sf_vec3f(const sf_vec3f& a_from):parent(a_from){}
0023 sf_vec3f& operator=(const sf_vec3f& a_from){
0024 parent::operator=(a_from);
0025 return *this;
0026 }
0027 public:
0028 sf_vec3f& operator+=(const vec3f& a_value) {parent::operator+=(a_value);return *this;}
0029 public:
0030 void set_value(float a_0,float a_1,float a_2) {value(vec3f(a_0,a_1,a_2));}
0031 public: //for iv2sg
0032 void setValue(const vec3f& a_v) {value(a_v);}
0033 void setValue(float a_0,float a_1,float a_2) {value(vec3f(a_0,a_1,a_2));}
0034 };
0035
0036 }}
0037
0038 #endif