#include <linear_segment.hpp>
Definition at line 27 of file linear_segment.hpp.
ecl::LinearSegment::LinearSegment |
( |
const double & |
x_1, |
|
|
const double & |
y_1, |
|
|
const double & |
x_2, |
|
|
const double & |
y_2 |
|
) |
| |
double ecl::LinearSegment::squaredDistanceFromPoint |
( |
const double & |
x, |
|
|
const double & |
y |
|
) |
| const |
Distance of a point from the segment.
Returns the distance from one of the end points if it is closer than the segment itself.
TODO shift this to a standard geometry function computing the squared distance between two geometric objects.
- Parameters
-
x | : x coordinate of the point |
y | : y-coordinate of the point |
- Returns
- double
Definition at line 36 of file lib/linear_segment.cpp.
double ecl::LinearSegment::x_1 |
|
private |
double ecl::LinearSegment::x_2 |
|
private |
double ecl::LinearSegment::y_1 |
|
private |
double ecl::LinearSegment::y_2 |
|
private |
The documentation for this class was generated from the following files: