Class ConstPoint3d

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class ConstPoint3d : public lanelet::ConstPoint2d

An immutable 3d point.

Subclassed by lanelet::Primitive< ConstPoint3d >

Public Types

using BasicPoint = BasicPoint3d
using ConstType = ConstPoint3d
using MutableType = Point3d

Public Functions

ConstPoint3d() = default
inline explicit ConstPoint3d(const ConstPoint2d &other)
operator BasicPoint2d() const noexcept = delete
inline operator const BasicPoint3d&() const noexcept

Implicit cast to a basic 3d point.

inline const BasicPoint &basicPoint() const noexcept

get a basic 3d point

inline double z() const noexcept

get the z coordinate

inline ConstPoint2d(Id id, const BasicPoint3d &point, const AttributeMap &attributes = AttributeMap())

Construct from an id and a point.

inline explicit ConstPoint2d(Id id = InvalId, double x = 0., double y = 0., double z = 0., const AttributeMap &attributes = AttributeMap())

Construct from an id and coordinates.

The z coordinate is required because this point can be converted to a 3d point, where z matters.

Public Static Attributes

static constexpr traits::Dimensions Dimension = traits::Dimensions::Three