Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
Constants.hpp File Reference
#include <fishnet/NumericConcepts.hpp>
#include <cmath>
Include dependency graph for Constants.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fishnet
 
namespace  fishnet::math
 

Functions

template<std::floating_point F>
static constexpr DEFAULT_FLOATING_POINT fishnet::math::getDefaultEpsilon ()
 
template<Number T>
constexpr bool fishnet::math::isZero (T number) noexcept
 
template<Number T, Number U>
constexpr bool fishnet::math::areEqual (T lhs, U rhs) noexcept
 

Variables

static constexpr double fishnet::math::PI = 3.14159265358979323846
 
static constexpr double fishnet::math::TWO_PI = 2*PI
 
static constexpr double fishnet::math::DEG_TO_RAD = PI / 180.0
 
static constexpr double fishnet::math::RAD_TO_DEG = 180.0 / PI
 
static constexpr double fishnet::math::DOUBLE_EPSILON = 1e-12
 
static constexpr float fishnet::math::FLOAT_EPSILON =1e-6f
 
static constexpr DEFAULT_FLOATING_POINT fishnet::math::EPSILON = getDefaultEpsilon<DEFAULT_FLOATING_POINT>()