v1.0
Public Member Functions
|
Private Attributes
|
List of all members
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
)
12
:
location_
(location)
//, strength_(strength), c_(c)
13
{
14
15
}
Source::location_
Vec3D location_
Definition:
Source.h:32
Member Function Documentation
◆
evaluate()
Mdouble
Source::evaluate
(
Mdouble
x
)
18
{
19
//todo: fix this function
20
return
1.0;
//strength_*std::sqrt( (x-location_)*(x-location_) + c_*c_);
21
}
◆
getLocation()
Vec3D
Source::getLocation
(
)
inline
22
{
23
return
location_
;
24
}
References
location_
.
Member Data Documentation
◆
location_
Vec3D
Source::location_
private
Referenced by
getLocation()
.
The documentation for this class was generated from the following files:
Source.h
Source.cc
Source
Generated on Wed Aug 27 2025 17:05:44 for MercuryDPM by
1.9.1