Class Polygon3d

Inheritance Relationships

Base Type

Class Documentation

class Polygon3d : public lanelet::LineStringImpl<ConstPolygon3d>

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

Public Types

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

Public Functions

Polygon3d() = default
inline explicit Polygon3d(const LineString3d &other)

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

inline explicit operator LineString3d() const
inline BasicPolygon3d basicPolygon() const

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

inline operator BasicPolygon3d() const

implicit conversion to a basic polygon

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 Polygon2d