String parameters.
More...
#include <JModel.hh>
String parameters.
Definition at line 61 of file JAcoustics/JModel.hh.
JACOUSTICS::JModel::JString::JString |
( |
| ) |
|
|
inline |
JACOUSTICS::JModel::JString::JString |
( |
const double |
tx, |
|
|
const double |
ty |
|
) |
| |
|
inline |
JString& JACOUSTICS::JModel::JString::negate |
( |
| ) |
|
|
inline |
JString& JACOUSTICS::JModel::JString::mul |
( |
const double |
factor | ) |
|
|
inline |
Scale string.
- Parameters
-
factor | multiplication factor |
- Returns
- this string
Definition at line 137 of file JAcoustics/JModel.hh.
JString& JACOUSTICS::JModel::JString::div |
( |
const double |
factor | ) |
|
|
inline |
bool JACOUSTICS::JModel::JString::equals |
( |
const JString & |
string, |
|
|
const double |
precision = std::numeric_limits<double>::min() |
|
) |
| const |
|
inline |
Check equality.
- Parameters
-
string | string |
precision | precision |
- Returns
- true if strings are equal; else false
Definition at line 168 of file JAcoustics/JModel.hh.
171 return (fabs(
tx -
string.
tx) <= precision &&
172 fabs(
ty -
string.
ty) <= precision);
double JACOUSTICS::JModel::JString::getDot |
( |
const JString & |
string | ) |
const |
|
inline |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 273 of file JMath.hh.
Auxiliary class for arithmetic operations on objects.
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JString & |
string |
|
) |
| |
|
friend |
Write string parameters to output stream.
- Parameters
-
out | output stream |
string | string |
- Returns
- output stream
Definition at line 195 of file JAcoustics/JModel.hh.
200 return out <<
FIXED(10,7) <<
string.tx <<
' '
201 <<
FIXED(10,7) <<
string.ty;
Auxiliary data structure for floating point format specification.
double JACOUSTICS::JModel::JString::tx |
double JACOUSTICS::JModel::JString::ty |
The documentation for this struct was generated from the following file: