|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
2D infinite line representation using slope-intercept form. More...
Go to the source code of this file.
Classes | |
| struct | Aleph::LineEq |
| 2D infinite line in slope-intercept form. More... | |
Namespaces | |
| namespace | Aleph |
| Main namespace for Aleph-w library functions. | |
Variables | |
| constexpr double | Aleph::LINE_EPSILON = 1e-10 |
| Default epsilon for floating-point comparisons. | |
2D infinite line representation using slope-intercept form.
This file provides the LineEq class for representing infinite lines in 2D space using the slope-intercept form: y = y0 + m*x
The line is stored as:
This gives the equation: y = y0 + m*x
This representation cannot handle vertical lines (infinite slope). For vertical lines, consider using parametric or implicit form.
Definition in file line.H.