Pangolin
Header-only C++20 plane computational geometry library
Loading...
Searching...
No Matches
pgl::rational_int< T > Struct Template Reference

The integer type a Rational stores its parts in; any other type is its own answer. More...

#include <rational.hpp>

Inheritance diagram for pgl::rational_int< T >:
[legend]

Public Types

using type = T

Detailed Description

template<class T>
struct pgl::rational_int< T >

The integer type a Rational stores its parts in; any other type is its own answer.

This is the type an exact fraction collapses to once it is known to be whole, which is what makes it the natural default result type for an operation that hands back integers extracted from rational coordinates.

Member Typedef Documentation

◆ type

template<class T>
using pgl::rational_int< T >::type = T