Class Polygon2d

Inheritance Relationships

Base Type

Class Documentation

class Polygon2d : public lanelet::LineStringImpl<ConstPolygon2d>

An mutable clockwise oriented, open (ie start point != end point) polygon in 2d.

Public Types

using ConstType = ConstPolygon2d
using MutableType = Polygon2d
using TwoDType = Polygon2d
using ThreeDType = Polygon3d

Public Functions

Polygon2d() = default
inline explicit Polygon2d(const LineString2d &other)

Conversion from LineString2d. Does not ensure validity of the polygon!

inline explicit operator LineString2d() const
inline BasicPolygon2d basicPolygon() const

create a simple 2d polygon from this (just a vector)

inline operator BasicPolygon2d() const
LineStringImpl() = default
template<typename OtherT>
inline explicit LineStringImpl(const LineStringImpl<OtherT> &other)

Construct from other (mutable!) LineStrings.

explicit LineStringImpl(const std::shared_ptr<const LineStringData>&, bool inverted) = delete
inline explicit LineStringImpl(const std::shared_ptr<LineStringData> &data, bool inverted)

Construct from linestring data.

LineStringImpl(LineStringImpl &&rhs) noexcept = default
LineStringImpl(const LineStringImpl &rhs) = default

Friends

friend class Polygon3d