Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
point.h File Reference

Cartesian point / 2D vector and related operations. More...

Go to the source code of this file.

Classes

class  Geom::Point
 Two-dimensional point that doubles as a vector. More...
 
struct  Geom::Point::LexLessRt
 Lexicographical ordering functor with runtime dimension. More...
 
struct  Geom::Point::LexGreaterRt
 
struct  Geom::Point::LexLess< X >
 
struct  Geom::Point::LexLess< Y >
 
struct  Geom::Point::LexGreater< X >
 
struct  Geom::Point::LexGreater< Y >
 
class  std::iterator_traits< Geom::Point >
 
struct  std::tuple_size< Geom::Point >
 
struct  std::tuple_element< I, Geom::Point >
 
struct  std::hash< Geom::Point >
 

Namespaces

namespace  Geom
 Various utility functions.
 
namespace  std
 STL namespace.
 

Functions

bool Geom::are_near_rel (Point const &a, Point const &b, double eps=EPSILON)
 Test whether the relative distance between two points is less than some threshold.
 
Point Geom::unit_vector (Point const &a)
 
Coord Geom::L1 (Point const &p)
 
Coord Geom::LInfty (Point const &p)
 
bool Geom::is_zero (Point const &p)
 
bool Geom::is_unit_vector (Point const &p, Coord eps=EPSILON)
 
double Geom::atan2 (Point const &p)
 
double Geom::angle_between (Point const &a, Point const &b)
 
Point Geom::abs (Point const &b)
 
Point Geom::constrain_angle (Point const &A, Point const &B, unsigned n=4, Point const &dir={1, 0})
 

Detailed Description

Cartesian point / 2D vector and related operations.

Definition in file point.h.