MathLib
Loading...
Searching...
No Matches
Collaboration diagram for Checks:

Check for equality

bool check_if_equal (float input, float near_to, float tolerance=0.0002f)
 
bool check_if_equal (double input, double near_to, double tolerance=0.0002)
 
bool check_if_equal (long double input, long double near_to, long double tolerance=0.0002l)
 

Check for inequality

bool check_if_not_equal (float input, float near_to, float tolerance=0.0002f)
 
bool check_if_not_equal (double input, double near_to, double tolerance=0.0002)
 
bool check_if_not_equal (long double input, long double near_to, long double tolerance=0.0002l)
 

Check

template<std::floating_point OT = T>
bool check_if_equal (const BasicComplex< T > &input, const BasicComplex< T > &near_to, OT tolerance=OT{0.0002})
 
template<std::floating_point OT = T>
bool check_if_not_equal (const BasicComplex< T > &input, const BasicComplex< T > &near_to, OT tolerance=OT{0.0002})
 

Check

template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_equal (const BasicDual< T > &input, const BasicDual< T > &near_to, OT tolerance=OT{0.0002})
 
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_not_equal (const BasicDual< T > &input, const BasicDual< T > &near_to, OT tolerance=OT{0.0002})
 

Check

template<std::floating_point OT = float>
bool check_if_equal (const BasicDualQuaternion< T > &input, const BasicDualQuaternion< T > &near_to, OT tolerance=OT{0.0002})
 
template<std::floating_point OT = float>
bool check_if_not_equal (const BasicDualQuaternion< T > &input, const BasicDualQuaternion< T > &near_to, OT tolerance=OT{0.0002})
 

Check

template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_equal (const BasicQuaternion< T > &input, const BasicQuaternion< T > &near_to, OT tolerance=OT{0.0002})
 
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_not_equal (const BasicQuaternion< T > &input, const BasicQuaternion< T > &near_to, OT tolerance=OT{0.0002})
 

Check

template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector2D &input, const BasicVector2D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector2D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector2D &input, const BasicVector2D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector2D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 

Check

template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector3D &input, const BasicVector3D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector3D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector3D &input, const BasicVector3D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector3D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 

Check

template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector4D &input, const BasicVector4D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal (const BasicVector4D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector4D &input, const BasicVector4D< U > &near_to, OT tolerance=OT{0.0002})
 
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal (const BasicVector4D &input, BasicRef< U > near_to, OT tolerance=OT{0.0002})
 

Detailed Description

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Function Documentation

◆ check_if_equal() [1/3]

bool check_if_equal ( double  input,
double  near_to,
double  tolerance = 0.0002 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 43 of file Checks.hpp.

◆ check_if_equal() [2/3]

bool check_if_equal ( float  input,
float  near_to,
float  tolerance = 0.0002f 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 33 of file Checks.hpp.

◆ check_if_equal() [3/3]

bool check_if_equal ( long double  input,
long double  near_to,
long double  tolerance = 0.0002l 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 53 of file Checks.hpp.

◆ check_if_not_equal() [1/3]

bool check_if_not_equal ( double  input,
double  near_to,
double  tolerance = 0.0002 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 91 of file Checks.hpp.

◆ check_if_not_equal() [2/3]

bool check_if_not_equal ( float  input,
float  near_to,
float  tolerance = 0.0002f 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 81 of file Checks.hpp.

◆ check_if_not_equal() [3/3]

bool check_if_not_equal ( long double  input,
long double  near_to,
long double  tolerance = 0.0002l 
)
inline

#include <lib/include/Math/math/Checks.hpp>

Definition at line 101 of file Checks.hpp.

Friends

◆ check_if_equal [1/10]

template<std::floating_point T>
template<std::floating_point OT = T>
bool check_if_equal ( const BasicComplex< T > &  input,
const BasicComplex< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Complex.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 339 of file Complex.hpp.

◆ check_if_equal [2/10]

template<class T >
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_equal ( const BasicDual< T > &  input,
const BasicDual< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Dual.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 295 of file Dual.hpp.

◆ check_if_equal [3/10]

template<class T >
template<std::floating_point OT = float>
bool check_if_equal ( const BasicDualQuaternion< T > &  input,
const BasicDualQuaternion< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/DualQuaternion.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 469 of file DualQuaternion.hpp.

◆ check_if_equal [4/10]

template<class T >
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_equal ( const BasicQuaternion< T > &  input,
const BasicQuaternion< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Quaternion.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 432 of file Quaternion.hpp.

◆ check_if_equal [5/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector2D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector2D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 915 of file Vector2D.hpp.

◆ check_if_equal [6/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector2D< Type > &  input,
const BasicVector2D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector2D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 886 of file Vector2D.hpp.

◆ check_if_equal [7/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector3D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector3D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 973 of file Vector3D.hpp.

◆ check_if_equal [8/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector3D< Type > &  input,
const BasicVector3D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector3D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 944 of file Vector3D.hpp.

◆ check_if_equal [9/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector4D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector4D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 981 of file Vector4D.hpp.

◆ check_if_equal [10/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_equal ( const BasicVector4D< Type > &  input,
const BasicVector4D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector4D.hpp>

Compare two values for equality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are equal within tolerance , false otherwise

Definition at line 952 of file Vector4D.hpp.

◆ check_if_not_equal [1/10]

template<std::floating_point T>
template<std::floating_point OT = T>
bool check_if_not_equal ( const BasicComplex< T > &  input,
const BasicComplex< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Complex.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 367 of file Complex.hpp.

◆ check_if_not_equal [2/10]

template<class T >
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_not_equal ( const BasicDual< T > &  input,
const BasicDual< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Dual.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 324 of file Dual.hpp.

◆ check_if_not_equal [3/10]

template<class T >
template<std::floating_point OT = float>
bool check_if_not_equal ( const BasicDualQuaternion< T > &  input,
const BasicDualQuaternion< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/DualQuaternion.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 497 of file DualQuaternion.hpp.

◆ check_if_not_equal [4/10]

template<class T >
template<std::floating_point OT = T>
requires std::is_floating_point_v<T>
bool check_if_not_equal ( const BasicQuaternion< T > &  input,
const BasicQuaternion< T > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Quaternion.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 461 of file Quaternion.hpp.

◆ check_if_not_equal [5/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector2D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector2D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 973 of file Vector2D.hpp.

◆ check_if_not_equal [6/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector2D< Type > &  input,
const BasicVector2D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector2D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 944 of file Vector2D.hpp.

◆ check_if_not_equal [7/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector3D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector3D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 1031 of file Vector3D.hpp.

◆ check_if_not_equal [8/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector3D< Type > &  input,
const BasicVector3D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector3D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 1002 of file Vector3D.hpp.

◆ check_if_not_equal [9/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector4D< Type > &  input,
BasicRef< U >  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector4D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 1039 of file Vector4D.hpp.

◆ check_if_not_equal [10/10]

template<class Type >
template<class U , std::floating_point OT = float>
requires Concept::SameUnqualified<Type, U>
bool check_if_not_equal ( const BasicVector4D< Type > &  input,
const BasicVector4D< U > &  near_to,
OT  tolerance = OT{0.0002} 
)
friend

#include <lib/include/Math/math/Vector4D.hpp>

Compare two values for inequality with a tolerance and prints debug information when false

Parameters
inputThe first value to compare
near_toThe second value to compare
toleranceThe minimum value for being considered equal
Returns
true if the two are not equal outside tolerance , false otherwise

Definition at line 1010 of file Vector4D.hpp.