Class Point2d

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class Point2d : public lanelet::Primitive<ConstPoint3d>

A mutable 2d point.

Subclassed by lanelet::Point3d

Public Types

using BasicPoint = BasicPoint2d
using ConstType = ConstPoint2d
using MutableType = Point2d
using TwoDType = Point2d
using ThreeDType = Point3d

Public Functions

Point2d() = default
operator const BasicPoint3d&() const = delete
inline operator BasicPoint2d() const noexcept

Cast to a basic 2d point.

inline auto basicPoint() noexcept

get a mutable reference to the 2d point data

inline const BasicPoint2d &basicPoint() const noexcept

get a basic 2d point

inline double &x() noexcept

gets a mutable reference to the x coordinate

inline double &y() noexcept

gets a mutable reference to the y coordinate

double z() const noexcept = delete
Primitive() = default
Primitive(const std::shared_ptr<const DataType>&) = delete
inline explicit Primitive(const std::shared_ptr<DataType> &data)

Construct a new primitive from shared_ptr to its data.

template<typename OtherT>
inline explicit Primitive(const Primitive<OtherT> &rhs)

Construct from another primitive. Only works if both share the same.

Primitive(Primitive &&rhs) noexcept
Primitive(const Primitive &rhs) noexcept

Public Static Attributes

static constexpr traits::Dimensions Dimension = traits::Dimensions::Two

Protected Functions

inline BasicPoint3d &point()

Friends

friend class Primitive