UAV Simulator
Loading...
Searching...
No Matches
PathSegment Class Referenceabstract

Abstract base class representing a segment of a path. More...

#include <path_segment.h>

Inheritance diagram for PathSegment:

Public Member Functions

virtual ~PathSegment ()=default
 Virtual destructor for safe polymorphic destruction.
 
virtual std::vector< easy3d::vec3generateWaypoints (float spacing) const =0
 Generate waypoints along the path segment.
 

Detailed Description

Abstract base class representing a segment of a path.

Defines the interface for generating discrete waypoints along the segment.

Constructor & Destructor Documentation

◆ ~PathSegment()

virtual PathSegment::~PathSegment ( )
virtualdefault

Virtual destructor for safe polymorphic destruction.

Member Function Documentation

◆ generateWaypoints()

virtual std::vector< easy3d::vec3 > PathSegment::generateWaypoints ( float  spacing) const
pure virtual

Generate waypoints along the path segment.

This pure virtual function must be implemented by all derived classes to provide a set of points spaced approximately by the given distance along the segment.

Parameters
spacingDesired spacing between waypoints.
Returns
Vector of 3D points representing the waypoints along the segment.

Implemented in LineSegment.


The documentation for this class was generated from the following file: