feisty meow concerns codebase
2.140
|
Represents a geometric triangle. More...
#include <triangle.h>
Public Member Functions | |
triangle () | |
triangle (const cartesian_point &vertex1, const cartesian_point &vertex2, const cartesian_point &vertex3) | |
triangle (const triangle &to_copy) | |
~triangle () | |
triangle & | operator= (const triangle &to_copy) |
bool | inside (const cartesian_point &where) const |
double | area () const |
line< double > | side_1_2 () const |
line< double > | side_2_3 () const |
line< double > | side_3_1 () const |
cartesian_point | vertex_1 () const |
cartesian_point | vertex_2 () const |
cartesian_point | vertex_3 () const |
void | vertex_1 (const cartesian_point &to_set) |
void | vertex_2 (const cartesian_point &to_set) |
void | vertex_3 (const cartesian_point &to_set) |
Protected Attributes | |
cartesian_point | _vertex_1 |
cartesian_point | _vertex_2 |
cartesian_point | _vertex_3 |
Represents a geometric triangle.
Definition at line 28 of file triangle.h.
geometric::triangle::triangle | ( | ) |
Definition at line 25 of file triangle.cpp.
geometric::triangle::triangle | ( | const cartesian_point & | vertex1, |
const cartesian_point & | vertex2, | ||
const cartesian_point & | vertex3 | ||
) |
Definition at line 31 of file triangle.cpp.
geometric::triangle::triangle | ( | const triangle & | to_copy | ) |
Definition at line 38 of file triangle.cpp.
geometric::triangle::~triangle | ( | ) |
Definition at line 44 of file triangle.cpp.
double geometric::triangle::area | ( | ) | const |
Definition at line 83 of file triangle.cpp.
bool geometric::triangle::inside | ( | const cartesian_point & | where | ) | const |
Definition at line 76 of file triangle.cpp.
References geometric::point< numeric_type >::x(), and geometric::point< numeric_type >::y().
Definition at line 46 of file triangle.cpp.
line< double > geometric::triangle::side_1_2 | ( | ) | const |
Definition at line 55 of file triangle.cpp.
line< double > geometric::triangle::side_2_3 | ( | ) | const |
Definition at line 58 of file triangle.cpp.
line< double > geometric::triangle::side_3_1 | ( | ) | const |
Definition at line 61 of file triangle.cpp.
cartesian_point geometric::triangle::vertex_1 | ( | ) | const |
Definition at line 64 of file triangle.cpp.
References _vertex_1.
void geometric::triangle::vertex_1 | ( | const cartesian_point & | to_set | ) |
Definition at line 70 of file triangle.cpp.
References _vertex_1.
cartesian_point geometric::triangle::vertex_2 | ( | ) | const |
Definition at line 66 of file triangle.cpp.
References _vertex_2.
void geometric::triangle::vertex_2 | ( | const cartesian_point & | to_set | ) |
Definition at line 72 of file triangle.cpp.
References _vertex_2.
cartesian_point geometric::triangle::vertex_3 | ( | ) | const |
Definition at line 68 of file triangle.cpp.
References _vertex_3.
void geometric::triangle::vertex_3 | ( | const cartesian_point & | to_set | ) |
Definition at line 74 of file triangle.cpp.
References _vertex_3.
|
protected |
Definition at line 56 of file triangle.h.
Referenced by operator=(), side_1_2(), side_3_1(), and vertex_1().
|
protected |
Definition at line 57 of file triangle.h.
Referenced by operator=(), side_1_2(), side_2_3(), and vertex_2().
|
protected |
Definition at line 58 of file triangle.h.
Referenced by operator=(), side_2_3(), side_3_1(), and vertex_3().