UAV Simulator
Loading...
Searching...
No Matches
line_segment.h
Go to the documentation of this file.
1
5#ifndef LINE_SEGMENT_H
6#define LINE_SEGMENT_H
7
8#include "path_segment.h"
9#include <easy3d/core/vec.h>
10#include "common.h"
11
18class LineSegment : public PathSegment
19{
20public:
26 LineSegment(const easy3d::vec3& start, const easy3d::vec3& end);
33 std::vector<easy3d::vec3> generateWaypoints(float spacing) const override;
34
35private:
38};
39
40#endif // LINE_SEGMENT_H
Represents a simple straight line segment between two 3D points.
Definition line_segment.h:19
std::vector< easy3d::vec3 > generateWaypoints(float spacing) const override
Generates a set of waypoints spaced along the line segment.
Definition line_segment.cpp:24
easy3d::vec3 start_
Definition line_segment.h:36
easy3d::vec3 end_
Definition line_segment.h:37
Abstract base class representing a segment of a path.
Definition path_segment.h:24
Common definitions and aliases for Easy3D types.
Vec< 3, float > vec3
Definition common.h:19
Abstract base class for different types of path segments.