Class inertialsim::geometry::FloatingPointTolerances¶
ClassList > inertialsim > geometry > FloatingPointTolerances
Singleton class for managing floating point tolerance settings. More...
#include <tolerances.h>
Public Functions¶
| Type | Name |
|---|---|
| FloatingPointTolerances (const FloatingPointTolerances &) = delete |
|
| FloatingPointTolerances (FloatingPointTolerances &&) = delete |
|
| FloatingPointTolerances & | operator= (const FloatingPointTolerances &) = delete |
| FloatingPointTolerances & | operator= (FloatingPointTolerances &&) = delete |
| void | reset () Reset tolerance to default value. |
| void | set_tolerance (double value) Set the floating point tolerance. |
| double | tolerance () const Get the current floating point tolerance. |
| ~FloatingPointTolerances () = default |
Public Static Functions¶
| Type | Name |
|---|---|
| FloatingPointTolerances & | Instance () Get the singleton instance. |
Detailed Description¶
This class provides thread-safe access to global tolerance settings used throughout the geometry module for floating point comparisons.
Example usage:
// Set tolerance
FloatingPointTolerances::Instance().set_tolerance(1e-10);
// Get tolerance
double tol = FloatingPointTolerances::Instance().tolerance();
// Reset to default
FloatingPointTolerances::Instance().set_default();
Public Functions Documentation¶
function FloatingPointTolerances [⅓]¶
inertialsim::geometry::FloatingPointTolerances::FloatingPointTolerances (
const FloatingPointTolerances &
) = delete
function FloatingPointTolerances [⅔]¶
inertialsim::geometry::FloatingPointTolerances::FloatingPointTolerances (
FloatingPointTolerances &&
) = delete
function operator=¶
FloatingPointTolerances & inertialsim::geometry::FloatingPointTolerances::operator= (
const FloatingPointTolerances &
) = delete
function operator=¶
FloatingPointTolerances & inertialsim::geometry::FloatingPointTolerances::operator= (
FloatingPointTolerances &&
) = delete
function reset¶
Reset tolerance to default value.
function set_tolerance¶
Set the floating point tolerance.
Parameters:
valueThe new tolerance value.
function tolerance¶
Get the current floating point tolerance.
Returns:
The current tolerance value.
function ~FloatingPointTolerances¶
Public Static Functions Documentation¶
function Instance¶
Get the singleton instance.
Returns:
Reference to the singleton instance (thread-safe).
The documentation for this class was generated from the following file cpp/include/inertialsim/geometry/tolerances.h