ROOT logo
Gled » VAR1 » HPoint<float>

class HPoint<float>

This class is also known as (typedefs to this class)

HPoint<Float_t>

Function Members (Methods)

public:
HPoint<float>()
HPoint<float>(const Float_t* p)
HPoint<float>(const Double_t* p)
HPoint<float>(const HPoint<float>&)
HPoint<float>(float _x, float _y, float _z)
~HPoint<float>()
HPoint<float>&Add(float _x, float _y, float _z)
static TClass*Class()
floatDot(const HPoint<float>& v) const
floatDot(const Float_t* v) const
floatDot(const Double_t* v) const
TClass*IsA() const
HPoint<float>&Neg()
const float*operator const float*() const
float*operator float*()
HPoint<float>&operator*=(float f)
HPoint<float>&operator+=(const HPoint<float>& a)
HPoint<float>&operator+=(const Float_t* v)
HPoint<float>&operator+=(const Double_t* v)
HPoint<float>&operator=(const HPoint<float>&)
voidSet(const Float_t* p)
voidSet(const Double_t* p)
voidSet(float _x, float _y, float _z)
voidShowMembers(TMemberInspector& insp, char* parent)
voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidZero()

Data Members

public:
floatx
floaty
floatz

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void Set(float _x, float _y, float _z)
{ x = _x; y = _y; z = _z; }
void Set(const Float_t* p)
{ x = p[0]; y = p[1]; z = p[2]; }
void Set(const Double_t* p)
{ x = p[0]; y = p[1]; z = p[2]; }
void Zero()
{ x = y = z = 0; }
HPoint& Neg()
{ x = -x; y = -y; z = -z; return *this; }
HPoint& Add(float _x, float _y, float _z)
{ x += _x; y += _y; z += _z; return *this; }
HPoint& operator+=(const HPoint& a)
{ x += a.x; y += a.y; z += a.z; return *this; }
HPoint& operator+=(const Float_t* v)
{ x += v[0]; y += v[1]; z += v[2]; return *this; }
HPoint& operator+=(const Double_t* v)
{ x += v[0]; y += v[1]; z += v[2]; return *this; }
HPoint& operator*=(float f)
{ x *= f; y *= f; z *= f; return *this; }
TT Dot(const HPoint& v)
{ return x*v.x + y*v.y + z*v.z; }
TT Dot(const Float_t* v)
{ return x*v[0] + y*v[1] + z*v[2]; }
TT Dot(const Double_t* v)
{ return x*v[0] + y*v[1] + z*v[2]; }
HTrans& operator=(const HPoint<float>& )
{ SetTrans(t); return *this; }