Go to the documentation of this file.
19 id_(_id), path_(_path), type_(_type) {
29 if (s.
getWidth() != this->getWidth()) {
34 return (this_p.getX() != s_p.
getX() || this_p.getY() != s_p.
getY()) ||
52 (this->getId() == s.
getId() && *
this == s));
57 (this->getId() == s.
getId() && *
this == s));
140 return this->
path_->getNumPoints();
173 throw std::invalid_argument(
"Width needs to be positive");
195 for (
auto&& s : this->
path_) {
bool hasSameDir(const Swath &s) const
Check if the difference between swaths angles is less than pi.
double area() const
Compute area of the geometry.
virtual Swath & operator=(Swath &&)
Types used by fields2cover library.
double getInAngle() const
void getGeometry(size_t i, Point &point)
bool operator<(const Swath &s) const
void setPath(const LineString &path)
void targetOppositeDirAs(const Swath &s)
Cells areaCovered() const
void setType(SwathType type)
LineString getPath() const
bool operator>(const Swath &s) const
void moveTo(const Point &ref_pt)
Moves swath data by a reference point.
void targetSameDirAs(const Swath &s)
bool operator==(const Swath &s) const
const Point startPoint() const
void setWidth(double width)
bool getCreationDir() const
Cells getCellsInside(const Cells &cell) const
bool operator!=(const Swath &s) const
SwathType getType() const
const Point endPoint() const
void setCreationDir(bool creation_dir)
bool operator>=(const Swath &s) const
double getOutAngle() const
static Cells buffer(const Geometry< T, R > &geom, double width, int side=0)
bool operator<=(const Swath &s) const
fields2cover
Author(s):
autogenerated on Fri Apr 25 2025 02:18:31