Cafu Engine
ProductMatrixT Class Reference

This class models the relationship with which a product matrix A*B depends on its components A and B (e.g. how a model-to-view matrix depends on the model-to-world and world-to-view matrices). More...

#include "DepRelMatrix.hpp"

Inheritance diagram for ProductMatrixT:

Public Member Functions

 ProductMatrixT (DepRelMatrixT &A, DepRelMatrixT &B)
 
virtual void Update ()
 Overwrite the base class method. More...
 
- Public Member Functions inherited from DepRelMatrixT
 DepRelMatrixT (const DepRelMatrixT &Other)
 

Additional Inherited Members

- Public Attributes inherited from DepRelMatrixT
MatrixT Matrix
 The matrix. More...
 
unsigned long Age
 The "age" or change-count of this matrix. How old the source matrix was when we were last updated. More...
 
const unsigned long ID
 The unique ID of this matrix. Useful for unambiguous identification. More...
 

Detailed Description

This class models the relationship with which a product matrix A*B depends on its components A and B (e.g. how a model-to-view matrix depends on the model-to-world and world-to-view matrices).

Note that

ProductMatrixT ModelView(WorldToView, ModelToWorld);

would be the correct statement for a model-to-view matrix, whereas the opposite component order

ProductMatrixT ModelView(ModelToWorld, WorldToView);

is wrong.

Member Function Documentation

void ProductMatrixT::Update ( )
virtual

Overwrite the base class method.

Reimplemented from DepRelMatrixT.


The documentation for this class was generated from the following files: