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
:
9
Point
A
;
10
Point
B
;
11
Point
C
;
12
double
Area
;
13
14
Triangle
();
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
24
~Triangle
();
25
};
26
27
#endif
// TRIANGLE_HPP
Point.hpp
Point
Definition:
Point.hpp:10
Triangle
Definition:
Triangle.hpp:7
Triangle::Area
double Area
Definition:
Triangle.hpp:12
Triangle::B
Point B
Definition:
Triangle.hpp:10
Triangle::GetCentroidX
float GetCentroidX() const
Triangle::Triangle
Triangle(const Point &A, const Point &B, const Point &C)
Triangle::Contains
bool Contains(const Point &P) const
Triangle::GetCentroidY
float GetCentroidY() const
Triangle::~Triangle
~Triangle()
Triangle::A
Point A
Definition:
Triangle.hpp:9
Triangle::GetCentroid
Point GetCentroid() const
Triangle::Triangle
Triangle()
Triangle::C
Point C
Definition:
Triangle.hpp:11
Triangle::Contains
bool Contains(float X, float Y) const
Include
Core
Types
Triangle.hpp
Generated by
1.9.1