CARLA
Loading...
Searching...
No Matches
Geometry.cpp File Reference
#include "Geometry.h"
#include <algorithm>
#include <map>
#include <set>
#include <boost/geometry/algorithms/correct.hpp>

Go to the source code of this file.

Namespaces

namespace  twinmodel
namespace  twinmodel::geom

Functions

double twinmodel::geom::HeadingAt (const LineString &line, double s)
 Heading of line at distance s, in radians.
Point twinmodel::geom::Interpolate (const LineString &line, double s)
 Point at distance s along line, shapely's LineString.interpolate.
Polygon twinmodel::geom::MakeValid (const Polygon &polygon)
 bg::is_valid plus a correction pass, shapely's make_valid.
LineString twinmodel::geom::OffsetLine (const LineString &line, double offset)
 Offset line sideways by offset metres, positive to the left.
std::vector< Polygon > twinmodel::geom::Polygonize (const std::vector< LineString > &edges)
 Build polygons from a set of noded edges, shapely's polygonize.
double twinmodel::geom::Project (const LineString &line, const Point &p)
 Distance along line of the projection of p, shapely's LineString.project.
LineString twinmodel::geom::Substring (const LineString &line, double from, double to)
 The piece of line between distances from and to, shapely's substring: endpoints are inserted so the cut is exact.
MultiPolygon twinmodel::geom::UnaryUnion (const std::vector< Polygon > &polygons)