#include <geom.hh>
Public Member Functions | |
| LineRT () | |
| Create a line. | |
| LineRT (float rho, float theta) | |
| Create a line. | |
| LineRT (const Line &line) | |
| Create a line by converting from an end-point representation. | |
| bool | operator< (const LineRT &line) const |
| Compares lines according to the rho values. | |
Public Attributes | |
| float | rho |
| the distance to the origin | |
| float | theta |
| the angle of the normal | |
In this representation, rho is the distance between the line and the origin, and theta is the angle of the normal of the line.
rho can also be negative, and the range of theta is not restricted.
|
||||||||||||
|
Create a line.
|
|
|
Create a line by converting from an end-point representation.
|
1.4.6