AlpacaLibary  1.63
A closed source C++ bot for OSRS
Triangle.hpp
Go to the documentation of this file.
1 #ifndef TRIANGLE_HPP
2 #define TRIANGLE_HPP
3 
4 #include "Point.hpp"
5 
6 class Triangle
7 {
8  public:
12  double Area;
13 
15  Triangle(const Point& A, const Point& B, const Point& C);
16 
17  Point GetCentroid() const;
18  float GetCentroidX() const;
19  float GetCentroidY() const;
20 
21  bool Contains(const Point& P) const;
22  bool Contains(float X, float Y) const;
23 
25 };
26 
27 #endif // TRIANGLE_HPP
Definition: Point.hpp:10
double Area
Definition: Triangle.hpp:12
Point B
Definition: Triangle.hpp:10
float GetCentroidX() const
Triangle(const Point &A, const Point &B, const Point &C)
bool Contains(const Point &P) const
float GetCentroidY() const
Point A
Definition: Triangle.hpp:9
Point GetCentroid() const
Point C
Definition: Triangle.hpp:11
bool Contains(float X, float Y) const