|
wuzp
Wrong Unit? Zero Points! Compile-time checks for units, coordinate systems and points vs. vectors.
|
The tolerance of the validity checks of rotations and Lorentz transformations, for values of the type ValueT_: the largest absolute deviation of an element of R R^T from the identity, or of Lambda^T eta Lambda from eta (see ActiveSpatialRotation::isValid() and LorentzTransformation::isValid()). More...
#include <wuzp/trafo/traits.hpp>
Static Public Member Functions | |
| static constexpr ValueT_ | value () |
The tolerance of the validity checks of rotations and Lorentz transformations, for values of the type ValueT_: the largest absolute deviation of an element of R R^T from the identity, or of Lambda^T eta Lambda from eta (see ActiveSpatialRotation::isValid() and LorentzTransformation::isValid()).
It is separate from Precision, the default of isApprox(), which is too strict for transformations whose rounding errors accumulated, e.g. in compositions: Drake's RotationMatrix accepts 128 machine epsilons (about 3e-14 for double, https://drake.mit.edu/doxygen_cxx/classdrake_1_1math_1_1_rotation_matrix.html), Sophus 1e-10 (https://github.com/strasdat/Sophus), and wuzp leaves a margin for longer chains: 1e-9 for double and 1e-4 for float. Integer matrices are exact, so their tolerance is 0, e.g. for rotations by multiples of pi/2, and long double has the tolerance of double. Every arithmetic type has one, since MSVC instantiates the default argument of isValid() together with its class, like that of isApprox() (see Precision, also for why the primary template is the case of the integers).
Definition at line 56 of file traits.hpp.
|
inlinestaticconstexpr |
Definition at line 58 of file traits.hpp.