Coverage Control Library
Loading...
Searching...
No Matches
constants.h
Go to the documentation of this file.
1/*
2 * This file is part of the CoverageControl library
3 *
4 * Author: Saurav Agarwal
5 * Contact: sauravag@seas.upenn.edu, agr.saurav1@gmail.com
6 * Repository: https://github.com/KumarRobotics/CoverageControl
7 *
8 * Copyright (c) 2024, Saurav Agarwal
9 *
10 * The CoverageControl library is free software: you can redistribute it and/or
11 * modify it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or (at your
13 * option) any later version.
14 *
15 * The CoverageControl library is distributed in the hope that it will be
16 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
18 * Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along with
21 * CoverageControl library. If not, see <https://www.gnu.org/licenses/>.
22 */
23
29#ifndef CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
30#define CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
31
32#include <cmath>
33#include <limits>
34
35#include "CoverageControl/Config.h"
36
41namespace CoverageControl {
48double const kEps = 1e-10;
49float const kEpsf = 1e-6f;
50double const kLargeEps = 1e-4;
51double const kSqrt2 = std::sqrt(2);
52double const kOneBySqrt2 = 1. / std::sqrt(2);
53float const kOneBySqrt2f = 1.f / sqrtf(2.f);
54double const kInfD =
55 std::numeric_limits<double>::infinity();
56constexpr auto kMaxPrecision{std::numeric_limits<long double>::digits10 +
57 1};
63} /* namespace CoverageControl */
64#endif // CPPSRC_CORE_INCLUDE_COVERAGECONTROL_CONSTANTS_H_
double const kEps
Definition constants.h:48
double const kInfD
Definition constants.h:54
double const kSqrt2
Definition constants.h:51
double const kLargeEps
Definition constants.h:50
double const kOneBySqrt2
Definition constants.h:52
constexpr auto kMaxPrecision
Definition constants.h:56
float const kOneBySqrt2f
Definition constants.h:53
float const kEpsf
Definition constants.h:49
Namespace for the CoverageControl library.