library: libRGL #include "TGLUtil.h"

# TGLMatrix

class description - source file - inheritance tree (.pdf)

## class TGLMatrix

| Inheritance Chart:
`TGLMatrix` |

        private:

          Bool_t ValidIndex(UInt_t index) const

        public:

                           TGLMatrix()
                           TGLMatrix(Double_t x, Double_t y, Double_t z)
                           TGLMatrix(const Double_t* vals)
                           TGLMatrix(const TGLMatrix& other)
                   virtual ~TGLMatrix()
                 Double_t* Arr()
           const Double_t* CArr() const
            static TClass* Class()
                      void Dump() const
                TGLVector3 GetScale() const
                TGLVertex3 GetTranslation() const
                      void InvRot()
           virtual TClass* IsA() const
          const TGLMatrix& operator=(const TGLMatrix& rhs) const
                 Double_t& operator[](Int_t index)
                      void Set(const Double_t* vals)
                      void SetIdentity()
                      void SetScale(const TGLVector3& scale)
                      void SetTranslation(const TGLVertex3& trans)
                      void Shift(const TGLVector3& shift)
              virtual void ShowMembers(TMemberInspector& insp, char* parent)
              virtual void Streamer(TBuffer& b)
                      void StreamerNVirtual(TBuffer& b)
                      void TransformVertex(TGLVertex3& vertex) const

### Data Members

        private:

          Double_t fVals[16]  Column MAJOR as per OGL

## Class Description

TGLMatrix()

TGLMatrix(Double_t x, Double_t y, Double_t z)

TGLMatrix(const Double_t vals[16])

TGLMatrix(const TGLMatrix & other)

~TGLMatrix()

void Set(const Double_t vals[16])

void SetIdentity()

TGLVertex3 GetTranslation() const

void SetTranslation(const TGLVertex3 & trans)

void Shift(const TGLVector3 & shift)

TGLVector3 GetScale() const

     Get local axis scaling factors

void SetScale(const TGLVector3 & scale)

     Set local axis scaling factors

void InvRot()

void TransformVertex(TGLVertex3 & vertex) const

void Dump() const

### Inline Functions

                      Bool_t ValidIndex(UInt_t index) const
            const TGLMatrix& operator=(const TGLMatrix& rhs) const
                   Double_t& operator[](Int_t index)
             const Double_t* CArr() const
                   Double_t* Arr()
                     TClass* Class()
                     TClass* IsA() const
                        void ShowMembers(TMemberInspector& insp, char* parent)
                        void Streamer(TBuffer& b)
                        void StreamerNVirtual(TBuffer& b)

Author: Richard Maunder 25/05/2005
Last update: root/gl:$Name: $:$Id: TGLUtil.cxx,v 1.7 2005/06/15 10:22:57 brun Exp $
Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *