AlpacaLibary  1.63
A closed source C++ bot for OSRS
Triangle Class Reference

#include <Triangle.hpp>

Public Member Functions

 Triangle ()
 
 Triangle (const Point &A, const Point &B, const Point &C)
 
Point GetCentroid () const
 
float GetCentroidX () const
 
float GetCentroidY () const
 
bool Contains (const Point &P) const
 
bool Contains (float X, float Y) const
 
 ~Triangle ()
 

Public Attributes

Point A
 
Point B
 
Point C
 
double Area
 

Detailed Description

Definition at line 6 of file Triangle.hpp.

Constructor & Destructor Documentation

◆ Triangle() [1/2]

Triangle::Triangle ( )

◆ Triangle() [2/2]

Triangle::Triangle ( const Point A,
const Point B,
const Point C 
)

◆ ~Triangle()

Triangle::~Triangle ( )

Member Function Documentation

◆ Contains() [1/2]

bool Triangle::Contains ( const Point P) const

◆ Contains() [2/2]

bool Triangle::Contains ( float  X,
float  Y 
) const

◆ GetCentroid()

Point Triangle::GetCentroid ( ) const

◆ GetCentroidX()

float Triangle::GetCentroidX ( ) const

◆ GetCentroidY()

float Triangle::GetCentroidY ( ) const

Member Data Documentation

◆ A

Point Triangle::A

Definition at line 9 of file Triangle.hpp.

◆ Area

double Triangle::Area

Definition at line 12 of file Triangle.hpp.

◆ B

Point Triangle::B

Definition at line 10 of file Triangle.hpp.

◆ C

Point Triangle::C

Definition at line 11 of file Triangle.hpp.


The documentation for this class was generated from the following file: