Inkscape
Vector Graphics Editor
|
Integral and real coordinate types and some basic utilities. More...
Go to the source code of this file.
Classes | |
struct | Geom::D2Traits< T > |
struct | Geom::GetAxis< D, T > |
Axis extraction functor. More... | |
struct | Geom::CoordTraits< C > |
Traits class used with coordinate types. More... | |
struct | Geom::CoordTraits< IntCoord > |
struct | Geom::CoordTraits< Coord > |
Namespaces | |
namespace | Geom |
Various utility functions. | |
Typedefs | |
using | Geom::Coord = double |
Floating point type used to store coordinates. | |
using | Geom::IntCoord = int |
Type used for integral coordinates. | |
Enumerations | |
enum | Geom::Dim2 { Geom::X = 0 , Geom::Y = 1 } |
2D axis enumeration (X or Y). More... | |
Functions | |
constexpr Dim2 | Geom::other_dimension (Dim2 d) |
Get the other (perpendicular) dimension. | |
constexpr Coord | Geom::infinity () |
Get a value representing infinity. | |
bool | Geom::are_near (Coord a, Coord b, double eps=EPSILON) |
Nearness predicate for values. | |
bool | Geom::rel_error_bound (Coord a, Coord b, double eps=EPSILON) |
constexpr Coord | Geom::lerp (Coord t, Coord a, Coord b) |
Numerically stable linear interpolation. | |
Variables | |
constexpr Coord | Geom::EPSILON = 1e-6 |
Default "acceptably small" value. | |
Integral and real coordinate types and some basic utilities.
Definition in file coord.h.