+
class TGLVector3
-
library: libRGL
#include "TGLUtil.h"
Display options:
Show inherited
Show non-public

class TGLVector3: public TGLVertex3


TGLVertex3

3 component (x/y/z) vertex class

This is part of collection of simple utility classes for GL only in
TGLUtil.h/cxx. These provide const and non-const accessors Arr() &
CArr() to a GL compatible internal field - so can be used directly
with OpenGL C API calls - which TVector3 etc cannot (easily).
They are not intended to be fully featured just provide minimum
required.

Function Members (Methods)

public:
TGLVector3()
TGLVector3(const Double_t* src)
TGLVector3(const TGLVector3& other)
TGLVector3(Double_t x, Double_t y, Double_t z)
virtual~TGLVector3()
Double_t*TGLVertex3::Arr()
const Double_t*TGLVertex3::CArr() const
static TClass*Class()
voidTGLVertex3::Dump() const
voidTGLVertex3::Fill(Double_t val)
virtual TClass*IsA() const
Double_tMag() const
voidTGLVertex3::Maximum(const TGLVertex3& other)
voidTGLVertex3::Minimum(const TGLVertex3& other)
voidTGLVertex3::Negate()
voidNormalise()
const TGLVector3&operator*=(Double_t val)
const TGLVertex3&TGLVertex3::operator+=(const TGLVector3& vec)
TGLVector3operator-() const
const TGLVertex3&TGLVertex3::operator-=(const TGLVector3& vec)
const TGLVector3&operator/=(Double_t val)
TGLVector3&operator=(const TGLVector3&)
Bool_tTGLVertex3::operator==(const TGLVertex3& rhs) const
Double_t&TGLVertex3::operator[](Int_t index)
const Double_t&TGLVertex3::operator[](Int_t index) const
voidTGLVertex3::Set(const TGLVertex3& other)
voidTGLVertex3::Set(Double_t x, Double_t y, Double_t z)
voidTGLVertex3::Shift(TGLVector3& shift)
voidTGLVertex3::Shift(Double_t xDelta, Double_t yDelta, Double_t zDelta)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
Double_tTGLVertex3::X() const
Double_t&TGLVertex3::X()
Double_tTGLVertex3::Y() const
Double_t&TGLVertex3::Y()
Double_tTGLVertex3::Z() const
Double_t&TGLVertex3::Z()
protected:
Bool_tTGLVertex3::ValidIndex(UInt_t index) const

Data Members

protected:
Double_tTGLVertex3::fVals[3]

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TGLVector3()
 Construct a default (0.0, 0.0, 0.0) vector
TGLVector3(Double_t x, Double_t y, Double_t z)
 Construct a vector with components (x,y,z)
TGLVector3(const TGLVector3 & other)
 Construct a vector from components of 'other'
TGLVector3(const Double_t *src)
 Construct a vector with components (src[0], src[1], src[2])
~TGLVector3()
 Destroy vector object
Double_t Mag()
void Normalise()
TGLMatrix & operator*=(Double_t val)
{ MultRight(rhs); return *this; }
TGLUtil& operator=(const TGLVector3& )

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.41 2007/06/24 18:48:11 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.