Source Class Reference

#include <Source.h>

Public Member Functions

 Source (Vec3D location, Mdouble strength, Mdouble c)
 
Mdouble evaluate (Mdouble x)
 
Vec3D getLocation ()
 

Private Attributes

Vec3D location_
 

Constructor & Destructor Documentation

◆ Source()

Source::Source ( Vec3D  location,
Mdouble  strength,
Mdouble  c 
)
33  : location_(location)//, strength_(strength), c_(c)
34 {
35 
36 }
Vec3D location_
Definition: Source.h:52

Member Function Documentation

◆ evaluate()

Mdouble Source::evaluate ( Mdouble  x)
39 {
40  //todo: fix this function
41  return 1.0;//strength_*std::sqrt( (x-location_)*(x-location_) + c_*c_);
42 }

◆ getLocation()

Vec3D Source::getLocation ( )
inline
42  {
43  return location_;
44  }

References location_.

Member Data Documentation

◆ location_

Vec3D Source::location_
private

Referenced by getLocation().


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