Struct Swath
Defined in File Swath.h
Struct Documentation
-
struct Swath
Public Functions
-
Swath()
-
explicit Swath(const LineString &path)
-
explicit Swath(double width)
-
Swath(const LineString &path, double width, int id = 0, SwathType type = SwathType::MAINLAND)
-
virtual ~Swath()
-
void setId(int id)
-
int getId() const
-
void setPath(const LineString &path)
-
LineString getPath() const
-
void setWidth(double width)
-
double getWidth() const
-
bool getCreationDir() const
-
void setCreationDir(bool creation_dir)
-
double length() const
-
double area() const
-
void reverse()
-
double getInAngle() const
-
double getOutAngle() const
-
size_t numPoints() const
-
bool hasSameDir(const Swath &s) const
Check if the difference between swaths angles is less than pi.
-
void targetSameDirAs(const Swath &s)
Reverse the direction of the swath if the difference of the angles is greater than pi.
-
Swath()