|
Vulcan
Aerospace Engineering Utilities Built on Janus
|
#include <janus/math/Arithmetic.hpp>#include <janus/math/Logic.hpp>#include <sstream>#include <string>#include <type_traits>#include <vulcan/core/Constants.hpp>#include <vulcan/core/VulcanError.hpp>#include <vulcan/core/VulcanTypes.hpp>
Go to the source code of this file.
Namespaces | |
| namespace | vulcan |
| namespace | vulcan::validation |
Functions | |
| template<typename Scalar> | |
| bool | vulcan::validation::is_finite (const Scalar &x) |
| Check if value is finite (not NaN or Inf). | |
| template<typename Scalar> | |
| auto | vulcan::validation::is_in_range (const Scalar &x, const Scalar &min, const Scalar &max) |
| template<typename Scalar> | |
| Scalar | vulcan::validation::clamp (const Scalar &x, const Scalar &min, const Scalar &max) |
| Clamp value to [min, max]. | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_finite (const Scalar &x, const std::string &name) |
| Assert value is finite. | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_positive (const Scalar &x, const std::string &name) |
| Assert value is positive (> 0). | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_non_negative (const Scalar &x, const std::string &name) |
| Assert value is non-negative (>= 0). | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_in_range (const Scalar &x, const std::string &name, const Scalar &min_val, const Scalar &max_val) |
| Assert value is in range [min, max]. | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_at_most (const Scalar &x, const std::string &name, const Scalar &max_val) |
| Assert value is less than or equal to max. | |
| template<typename Scalar> | |
| void | vulcan::validation::assert_at_least (const Scalar &x, const std::string &name, const Scalar &min_val) |
| Assert value is greater than or equal to min. | |
| template<typename VectorType> | |
| void | vulcan::validation::assert_unit_quaternion (const VectorType &q, double tolerance=1e-6) |