libosmscout  1.1.1
Classes | Namespaces | Functions
shapes.h File Reference
#include <vector>
#include <cstddef>
#include <assert.h>
#include <cmath>
Include dependency graph for shapes.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  p2t::Point
 
struct  p2t::Edge
 
class  p2t::Triangle
 

Namespaces

 p2t
 

Functions

bool p2t::cmp (const Point *a, const Point *b)
 
Point p2t::operator+ (const Point &a, const Point &b)
 Add two points_ component-wise. More...
 
Point p2t::operator- (const Point &a, const Point &b)
 Subtract two points_ component-wise. More...
 
Point p2t::operator* (double s, const Point &a)
 Multiply point by scalar. More...
 
bool p2t::operator== (const Point &a, const Point &b)
 
bool p2t::operator!= (const Point &a, const Point &b)
 
double p2t::Dot (const Point &a, const Point &b)
 Peform the dot product on two vectors. More...
 
double p2t::Cross (const Point &a, const Point &b)
 Perform the cross product on two vectors. In 2D this produces a scalar. More...
 
Point p2t::Cross (const Point &a, double s)
 
Point p2t::Cross (const double s, const Point &a)