|
feisty meow concerns codebase
2.140
|
Represents a geometric line segment. More...
#include <line.h>
Public Member Functions | |
| line (const point< numeric_type > &endpoint1, const point< numeric_type > &endpoint2) | |
| line (numeric_type end1_x=0, numeric_type end1_y=0, numeric_type end2_x=0, numeric_type end2_y=0) | |
| point< numeric_type > | center () const |
| Returns the point at the center of the line segment. More... | |
| line | operator+ (const point< numeric_type > &to_add) const |
| line | operator- (const point< numeric_type > &to_subtract) const |
| Returns this line with "to_add" added to it. More... | |
| line & | operator+= (const point< numeric_type > &to_add) |
| line & | operator-= (const point< numeric_type > &to_subtract) |
| Adds or subtracts a point from ‘this’ line. More... | |
| point< numeric_type > | endpoint_1 () const |
| point< numeric_type > | endpoint_2 () const |
| void | endpoint_1 (const point< numeric_type > &to_set) |
| void | endpoint_2 (const point< numeric_type > &to_set) |
| basis::astring | text_form () const |
| returns a string form of the points defining the line. More... | |
Protected Attributes | |
| point< numeric_type > | _endpoint_1 |
| point< numeric_type > | _endpoint_2 |
Represents a geometric line segment.
| geometric::line< numeric_type >::line | ( | const point< numeric_type > & | endpoint1, |
| const point< numeric_type > & | endpoint2 | ||
| ) |
| geometric::line< numeric_type >::line | ( | numeric_type | end1_x = 0, |
| numeric_type | end1_y = 0, |
||
| numeric_type | end2_x = 0, |
||
| numeric_type | end2_y = 0 |
||
| ) |
| point< numeric_type > geometric::line< numeric_type >::center |
| point< numeric_type > geometric::line< numeric_type >::endpoint_1 |
| void geometric::line< numeric_type >::endpoint_1 | ( | const point< numeric_type > & | to_set | ) |
| point< numeric_type > geometric::line< numeric_type >::endpoint_2 |
| void geometric::line< numeric_type >::endpoint_2 | ( | const point< numeric_type > & | to_set | ) |
| line< numeric_type > geometric::line< numeric_type >::operator+ | ( | const point< numeric_type > & | to_add | ) | const |
Definition at line 101 of file line.h.
References generate_aliases-new::to_add.
| line< numeric_type > & geometric::line< numeric_type >::operator+= | ( | const point< numeric_type > & | to_add | ) |
Definition at line 91 of file line.h.
References generate_aliases-new::to_add.
| line< numeric_type > geometric::line< numeric_type >::operator- | ( | const point< numeric_type > & | to_subtract | ) | const |
| line< numeric_type > & geometric::line< numeric_type >::operator-= | ( | const point< numeric_type > & | to_subtract | ) |
| basis::astring geometric::line< numeric_type >::text_form |
returns a string form of the points defining the line.
Definition at line 84 of file line.h.
References basis::astring::text_form().
|
protected |
|
protected |