AlpacaLibary  1.63
A closed source C++ bot for OSRS
Convex.hpp
Go to the documentation of this file.
1 #ifndef CONVEX_HPP_INCLUDED
2 #define CONVEX_HPP_INCLUDED
3 
4 #include <vector>
5 #include "Point.hpp"
6 #include "Box.hpp"
7 
8 class Convex
9 {
10  public:
11  std::vector<Point> Vertices;
12  Convex();
13  Convex(const std::vector<Point>& Vertices);
14  Convex(const Convex& C);
15  bool Valid() const;
16  bool Contains(const Point& P) const;
17  Point GetMiddle() const;
18  Box GetBox() const;
19  Point GetHybridRandomPoint(double ProbabilityX, double ProbabilityY, double StandardDeviationX, double StandardDeviationY, double PointGenAccuracy) const;
21  Point GetProfileHybridRandomPoint(double PointGenAccuracy) const;
22 
23  Convex operator+(const Point& P) const;
24  Convex operator-(const Point& P) const;
25  Convex& operator+=(const Point& P);
26  Convex& operator-=(const Point& P);
27  friend std::ostream& operator<<(std::ostream& OS, const Convex& C);
28  operator bool() const;
29  virtual ~Convex();
30 };
31 
32 #endif // CONVEX_HPP_INCLUDED
Definition: Box.hpp:11
Definition: Convex.hpp:9
Convex & operator+=(const Point &P)
bool Valid() const
Convex(const Convex &C)
Convex operator-(const Point &P) const
Point GetMiddle() const
Convex(const std::vector< Point > &Vertices)
bool Contains(const Point &P) const
std::vector< Point > Vertices
Definition: Convex.hpp:11
Convex & operator-=(const Point &P)
Point GetProfileHybridRandomPoint(double PointGenAccuracy) const
friend std::ostream & operator<<(std::ostream &OS, const Convex &C)
Convex operator+(const Point &P) const
Point GetHybridRandomPoint(double ProbabilityX, double ProbabilityY, double StandardDeviationX, double StandardDeviationY, double PointGenAccuracy) const
Box GetBox() const
virtual ~Convex()
Point GetProfileHybridRandomPoint() const
Definition: Point.hpp:10