9 #ifndef DUNEANAOBJ_SRVECTOR3D_H 10 #define DUNEANAOBJ_SRVECTOR3D_H 12 #if !defined(__GCCXML__) && !defined(__castxml__) 31 #if !defined(__GCCXML__) && !defined(__castxml__) 38 void SetXYZ(
float x,
float y,
float z);
40 #if !defined(__GCCXML__) && !defined(__castxml__) 42 operator TVector3()
const;
44 void SetX(
float _x){x = _x;}
45 void SetY(
float _y){y = _y;}
46 void SetZ(
float _z){z = _z;}
48 float X()
const {
return x;}
49 float Y()
const {
return y;}
50 float Z()
const {
return z;}
55 float Mag2()
const {
return x*x+y*y+z*
z;}
60 const float m =
Mag();
78 #if !defined(__GCCXML__) && !defined(__castxml__) 83 #endif //DUNEANAOBJ_SRVECTOR3D_H A 3-vector with more efficient storage than TVector3.
void SetXYZ(float x, float y, float z)
virtual ~SRVector3D()=default
float Dot(const SRVector3D &v) const
SRVector3D operator+(const SRVector3D &other) const
std::ostream & operator<<(std::ostream &stream, const caf::SRVector3D &vec)
SRVector3D operator-(const SRVector3D &other) const