Quantum Phenomena Explorer 7.9.8
Interactive quantum-phenomena Explorer Tutor — source documentation
Loading...
Searching...
No Matches
qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp} Namespace Reference

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.
 

Function Documentation

◆ fail()

bool qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::fail ( std::string & errorMessage,
const char * message )

Performs fail.

Parameters
errorMessageThe error message value used by the operation.
messageThe message value used by the operation.

Definition at line 30 of file potentialfield2d_tests.cpp.

◆ nearestIndexX()

std::size_t qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::nearestIndexX ( const PotentialField2D & p,
double x )

◆ nearestIndexY()

std::size_t qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::nearestIndexY ( const PotentialField2D & p,
double y )

◆ sampleIs()

bool qpe::tests::anonymous_namespace{potentialfield2d_tests.cpp}::sampleIs ( const PotentialField2D & p,
double x,
double y,
float expected )

Samples is.

Parameters
pThe p value used by the operation.
xX coordinate/value.
yY coordinate/value.
expectedThe expected value used by the operation.

Definition at line 71 of file potentialfield2d_tests.cpp.

References nearestIndexX(), nearestIndexY(), and sampleIs().

Referenced by sampleIs().