CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
materialEffect::Covariance Class Reference

#include <MaterialEffectsUpdator.h>

Public Member Functions

void add (AlgebraicSymMatrix55 &cov) const
 
Covarianceoperator+= (Covariance const &cov)
 
float operator[] (CovIndex i) const
 
float & operator[] (CovIndex i)
 

Private Attributes

float data [4] = {0}
 

Detailed Description

Definition at line 20 of file MaterialEffectsUpdator.h.

Member Function Documentation

void materialEffect::Covariance::add ( AlgebraicSymMatrix55 cov) const
inline
Covariance& materialEffect::Covariance::operator+= ( Covariance const &  cov)
inline

Definition at line 30 of file MaterialEffectsUpdator.h.

References data, and mps_fire::i.

30  {
31  for (int i = 0; i != 4; ++i)
32  data[i] += cov.data[i];
33  return *this;
34  }
float materialEffect::Covariance::operator[] ( CovIndex  i) const
inline

Definition at line 22 of file MaterialEffectsUpdator.h.

References data, and mps_fire::i.

22 { return data[i]; }
float& materialEffect::Covariance::operator[] ( CovIndex  i)
inline

Definition at line 23 of file MaterialEffectsUpdator.h.

References data, and mps_fire::i.

23 { return data[i]; }

Member Data Documentation

float materialEffect::Covariance::data[4] = {0}
private