feisty meow concerns codebase
2.140
|
Provides a geometric line that use double floating points numbers. More...
#include <cartesian_objects.h>
Public Member Functions | |
cartesian_line (const cartesian_point &endpoint_1, const cartesian_point &endpoint_2) | |
cartesian_line (double x_1=0, double y_1=0, double x_2=0, double y_2=0) | |
Public Member Functions inherited from geometric::line< double > | |
line (const point< double > &endpoint1, const point< double > &endpoint2) | |
line (double end1_x=0, double end1_y=0, double end2_x=0, double end2_y=0) | |
point< double > | center () const |
Returns the point at the center of the line segment. More... | |
line | operator+ (const point< double > &to_add) const |
line | operator- (const point< double > &to_subtract) const |
Returns this line with "to_add" added to it. More... | |
line & | operator+= (const point< double > &to_add) |
line & | operator-= (const point< double > &to_subtract) |
Adds or subtracts a point from ‘this’ line. More... | |
point< double > | endpoint_1 () const |
void | endpoint_1 (const point< double > &to_set) |
point< double > | endpoint_2 () const |
void | endpoint_2 (const point< double > &to_set) |
basis::astring | text_form () const |
returns a string form of the points defining the line. More... | |
Additional Inherited Members | |
Protected Attributes inherited from geometric::line< double > | |
point< double > | _endpoint_1 |
point< double > | _endpoint_2 |
Provides a geometric line that use double floating points numbers.
Definition at line 43 of file cartesian_objects.h.
|
inline |
Definition at line 46 of file cartesian_objects.h.
|
inline |
Definition at line 49 of file cartesian_objects.h.