String parameters.
More...
#include <JModel.hh>
String parameters.
Definition at line 47 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 123 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 154 of file JAcoustics/JModel.hh.
157 return (fabs(
tx -
string.
tx) <= precision &&
158 fabs(
ty -
string.
ty) <= precision);
double JACOUSTICS::JMODEL::JString::getLengthSquared |
( |
| ) |
const |
|
inline |
double JACOUSTICS::JMODEL::JString::getLength |
( |
| ) |
const |
|
inline |
Get length.
- Returns
- length
Definition at line 178 of file JAcoustics/JModel.hh.
double getLengthSquared() const
Get length squared.
double JACOUSTICS::JMODEL::JString::getAngle |
( |
| ) |
const |
|
inline |
double JACOUSTICS::JMODEL::JString::getDot |
( |
const JString & |
string | ) |
const |
|
inline |
template<class JFirst_t, class JSecond_t = JNullType>
JFirst_t& JMATH::JMath< JFirst_t, JSecond_t >::mul |
( |
const JSecond_t & |
object | ) |
|
|
inlineinherited |
Multiply with object.
- Parameters
-
- Returns
- result object
Definition at line 357 of file JMath.hh.
Auxiliary class for arithmetic operations on objects.
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JString & |
string |
|
) |
| |
|
friend |
Read string parameters from input stream.
- Parameters
-
in | input stream |
string | string |
- Returns
- input stream
Definition at line 215 of file JAcoustics/JModel.hh.
217 return in >>
string.tx >>
string.ty;
then fatal Wrong number of arguments fi set_variable DETECTOR $argv[1] set_variable INPUT_FILE $argv[2] eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY source JAcoustics sh $DETECTOR_ID CHECK_EXIT_CODE typeset A TRIPODS get_tripods $WORKDIR tripod txt TRIPODS for EMITTER in
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 228 of file JAcoustics/JModel.hh.
233 return out <<
FIXED(10,7) <<
string.tx <<
' '
234 <<
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: