Core 1.0
Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
ScalarAlpha Class Reference

A pair of two reals, one defining a value, the other an alpha value. More...

#include <scalaralpha.h>

Public Member Functions

 ScalarAlpha ()
 Empty constructor.
 
 ScalarAlpha (const double &, const double &)
 Constructor. More...
 
 ~ScalarAlpha ()
 Empty.
 
void SetValue (const double &)
 Set material layer thickness. More...
 
void SetAlpha (const double &)
 Set alpha layer value. More...
 
double Value () const
 Return the height value.
 
double Alpha () const
 Return the alpha value.
 

Static Public Attributes

static const ScalarAlpha Empty
 Empty value and weight.
 

Protected Attributes

double value
 Real.
 
double alpha
 Alpha.
 

Detailed Description

A pair of two reals, one defining a value, the other an alpha value.

Constructor & Destructor Documentation

◆ ScalarAlpha()

ScalarAlpha::ScalarAlpha ( const double &  x,
const double &  a 
)
inlineexplicit

Constructor.

Parameters
xReal.
aAlpha.

Member Function Documentation

◆ SetAlpha()

void ScalarAlpha::SetAlpha ( const double &  a)
inline

Set alpha layer value.

Parameters
aAlpha coefficient.

◆ SetValue()

void ScalarAlpha::SetValue ( const double &  v)
inline

Set material layer thickness.

Parameters
vValue.