Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
numeric.hpp File Reference

Numeric concepts and helpers shared by exact geometry operations. More...

#include "core/handle.hpp"
#include <array>
#include <cmath>
#include <compare>
#include <concepts>
#include <cstdint>
#include <istream>
#include <limits>
#include <numeric>
#include <ostream>
#include <type_traits>
#include <boost/multiprecision/cpp_int.hpp>

Go to the source code of this file.

Namespaces

namespace  pgl
namespace  boost
namespace  boost::multiprecision

Typedefs

using pgl::int128
 Signed 128-bit integer.

Functions

std::partial_ordering boost::multiprecision::operator<=> (const pgl::int128 &a, double b)
bool boost::multiprecision::operator== (const pgl::int128 &a, double b)
double boost::multiprecision::operator+ (const pgl::int128 &a, double b)
double boost::multiprecision::operator+ (double a, const pgl::int128 &b)
double boost::multiprecision::operator- (const pgl::int128 &a, double b)
double boost::multiprecision::operator- (double a, const pgl::int128 &b)
double boost::multiprecision::operator* (const pgl::int128 &a, double b)
double boost::multiprecision::operator* (double a, const pgl::int128 &b)
double boost::multiprecision::operator/ (const pgl::int128 &a, double b)
double boost::multiprecision::operator/ (double a, const pgl::int128 &b)

Detailed Description

Numeric concepts and helpers shared by exact geometry operations.

The geometry layer uses these utilities to select common coordinate types and to keep arithmetic generic over integers, floating-point values, and rationals.