feisty meow concerns codebase  2.140
geometric::cartesian_line Class Reference

Provides a geometric line that use double floating points numbers. More...

#include <cartesian_objects.h>

Inheritance diagram for geometric::cartesian_line:
Collaboration diagram for geometric::cartesian_line:

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...
 
lineoperator+= (const point< double > &to_add)
 
lineoperator-= (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
 

Detailed Description

Provides a geometric line that use double floating points numbers.

Definition at line 43 of file cartesian_objects.h.

Constructor & Destructor Documentation

◆ cartesian_line() [1/2]

geometric::cartesian_line::cartesian_line ( const cartesian_point endpoint_1,
const cartesian_point endpoint_2 
)
inline

Definition at line 46 of file cartesian_objects.h.

◆ cartesian_line() [2/2]

geometric::cartesian_line::cartesian_line ( double  x_1 = 0,
double  y_1 = 0,
double  x_2 = 0,
double  y_2 = 0 
)
inline

Definition at line 49 of file cartesian_objects.h.


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