|
Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
|
Functions | |
| bool | fail (std::string &errorMessage, const char *message) |
| Performs fail. | |
| std::size_t | nearestIndexX (const PotentialField2D &p, double x) |
| std::size_t | nearestIndexY (const PotentialField2D &p, double y) |
| bool | sampleIs (const PotentialField2D &p, double x, double y, float expected) |
| Samples is. | |
| bool qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::fail | ( | std::string & | errorMessage, |
| const char * | message ) |
Performs fail.
| errorMessage | The error message value used by the operation. |
| message | The message value used by the operation. |
Definition at line 30 of file potentialfield2d_tests.cpp.
| std::size_t qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::nearestIndexX | ( | const PotentialField2D & | p, |
| double | x ) |
Definition at line 36 of file potentialfield2d_tests.cpp.
References nearestIndexX(), qpe::PotentialField2D::width(), and qpe::PotentialField2D::xCoordinate().
Referenced by nearestIndexX(), and sampleIs().
| std::size_t qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::nearestIndexY | ( | const PotentialField2D & | p, |
| double | y ) |
Definition at line 50 of file potentialfield2d_tests.cpp.
References qpe::PotentialField2D::height(), nearestIndexY(), and qpe::PotentialField2D::yCoordinate().
Referenced by nearestIndexY(), and sampleIs().
| bool qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::sampleIs | ( | const PotentialField2D & | p, |
| double | x, | ||
| double | y, | ||
| float | expected ) |
Samples is.
| p | The p value used by the operation. |
| x | X coordinate/value. |
| y | Y coordinate/value. |
| expected | The expected value used by the operation. |
Definition at line 71 of file potentialfield2d_tests.cpp.
References nearestIndexX(), nearestIndexY(), and sampleIs().
Referenced by sampleIs().