CMS 3D CMS Logo

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

◆ add()

void materialEffect::Covariance::add ( AlgebraicSymMatrix55 cov) const
inline

◆ operator+=()

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  }

◆ operator[]() [1/2]

float materialEffect::Covariance::operator[] ( CovIndex  i) const
inline

Definition at line 22 of file MaterialEffectsUpdator.h.

References data, and mps_fire::i.

◆ operator[]() [2/2]

float& materialEffect::Covariance::operator[] ( CovIndex  i)
inline

Definition at line 23 of file MaterialEffectsUpdator.h.

References data, and mps_fire::i.

Member Data Documentation

◆ data

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