|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
#include <point.H>
Public Member Functions | |
| Triangle (const Point &__p1, const Point &__p2, const Point &__p3) | |
| Triangle (Point p, const Segment &s) | |
| Triangle (const Segment &s, const Point &p) | |
| Geom_Number | area () const |
| bool | is_clockwise () const |
| Returns true if the triangle vertices are ordered clockwise. | |
| const Point & | highest_point () const |
| const Point & | lowest_point () const |
| const Point & | leftmost_point () const |
| const Point & | rightmost_point () const |
| const Point & | get_p1 () const |
| const Point & | get_p2 () const |
| const Point & | get_p3 () const |
| bool | contains_to (const Point &p) const |
Returns true if point p lies inside this triangle. | |
| Segment | intersection_with (const Segment &s) const |
Returns the intersection segment between this triangle and segment s. | |
Public Member Functions inherited from Geom_Object | |
| Geom_Object ()=default | |
| virtual | ~Geom_Object ()=default |
Private Attributes | |
| Point | p1 |
| Point | p2 |
| Point | p3 |
| Geom_Number | __area |
Friends | |
| class | Point |
| class | Segment |
Definition at line 904 of file point.H.
References __area, ah_domain_error_if, area_of_parallelogram(), p1, p2, and p3.
Definition at line 913 of file point.H.
References __area, ah_domain_error_if, area_of_parallelogram(), p1, p2, and p3.
Definition at line 922 of file point.H.
References __area, ah_domain_error_if, area_of_parallelogram(), p1, p2, and p3.
|
inline |
|
inline |
Returns true if point p lies inside this triangle.
Definition at line 977 of file point.H.
References Point::is_to_left_from(), p1, p2, and p3.
Referenced by demo_geometric_primitives(), and Segment::intersection_with().
|
inline |
Definition at line 970 of file point.H.
References p1.
Referenced by Eepic_Triangle::draw(), Segment::intersection_with(), Segment::intersects_with(), print_triangle(), and triangle_area().
|
inline |
Definition at line 972 of file point.H.
References p2.
Referenced by Eepic_Triangle::draw(), Segment::intersection_with(), Segment::intersects_with(), print_triangle(), and triangle_area().
|
inline |
Definition at line 974 of file point.H.
References p3.
Referenced by Eepic_Triangle::draw(), Segment::intersection_with(), Segment::intersects_with(), print_triangle(), and triangle_area().
|
inline |
Returns the intersection segment between this triangle and segment s.
Definition at line 991 of file point.H.
References Segment::intersection_with().
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
Definition at line 901 of file point.H.
Referenced by Triangle(), Triangle(), Triangle(), area(), and is_clockwise().
|
private |
Definition at line 899 of file point.H.
Referenced by Triangle(), Triangle(), Triangle(), contains_to(), get_p1(), highest_point(), leftmost_point(), lowest_point(), and rightmost_point().
|
private |
Definition at line 899 of file point.H.
Referenced by Triangle(), Triangle(), Triangle(), contains_to(), get_p2(), highest_point(), leftmost_point(), lowest_point(), and rightmost_point().
|
private |
Definition at line 899 of file point.H.
Referenced by Triangle(), Triangle(), Triangle(), contains_to(), get_p3(), highest_point(), leftmost_point(), lowest_point(), and rightmost_point().