Classes | Macros | Typedefs | Functions
geometry_primitives.h File Reference
#include <cmath>
#include <cassert>
#include <algorithm>
#include <ostream>
#include "math_utils.h"
Include dependency graph for geometry_primitives.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Intersection
 
struct  LightWeightRectangle
 
struct  Point2D
 
struct  Ray
 
struct  Rectangle
 
class  Segment2D
 

Macros

#define PROCESS_CORNER(horz_id, vert_id)
 

Typedefs

using Intersections = std::vector< Intersection >
 

Functions

Point2D operator* (double scalar, const Point2D &p)
 
std::ostream & operator<< (std::ostream &stream, const Point2D &pnt)
 
std::ostream & operator<< (std::ostream &stream, const Segment2D &s)
 
std::ostream & operator<< (std::ostream &stream, const LightWeightRectangle &r)
 

Macro Definition Documentation

#define PROCESS_CORNER (   horz_id,
  vert_id 
)
Value:
if (contains(that.horz_id(), that.vert_id())) { \
++contained_corners_nm; \
c##horz_id = that.horz_id(); \
c##vert_id = that.vert_id(); \
}

Typedef Documentation

using Intersections = std::vector<Intersection>

Definition at line 113 of file geometry_primitives.h.

Function Documentation

Point2D operator* ( double  scalar,
const Point2D p 
)
inline

Definition at line 30 of file geometry_primitives.h.

std::ostream& operator<< ( std::ostream &  stream,
const Point2D pnt 
)
inline

Definition at line 32 of file geometry_primitives.h.

std::ostream& operator<< ( std::ostream &  stream,
const Segment2D s 
)
inline

Definition at line 94 of file geometry_primitives.h.

std::ostream& operator<< ( std::ostream &  stream,
const LightWeightRectangle r 
)
inline

Definition at line 316 of file geometry_primitives.h.



slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:25