Class Point3d

Inheritance Relationships

Base Type

Class Documentation

class Point3d : public lanelet::Point2d

A mutable 3d point.

Public Types

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

Public Functions

Point3d() = default
inline explicit Point3d(const Point2d &other)

constructs a 3D from a 2D point. No data is lost in that process.

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

Implicit cast to a mutable BasicPoint3d.

inline operator const BasicPoint3d&() const noexcept

Implicit cast to an immutable basicPoint3d.

inline BasicPoint &basicPoint() noexcept

Get a mutable reference to the internal 3d point.

inline const BasicPoint &basicPoint() const noexcept

Get an immutable reference to the internal 3d 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

inline double &z() noexcept

gets a mutable reference to the z coordinate

Point2d() = default

Public Static Attributes

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