|
Kig Python Scripting API Documentation |
||||
|
Simple class representing a line. More...
#include <common.h>

Public Member Functions | |
| LineData () | |
| LineData (const Coordinate &na, const Coordinate &nb) | |
| Constructor. | |
| const Coordinate | dir () const |
| The direction of the line. | |
| double | length () const |
| The length from a to b. | |
| bool | isParallelTo (const LineData &l) const |
| Return true if this line is parallel to l. | |
| bool | isOrthogonalTo (const LineData &l) const |
| Return true if this line is orthogonal to l. | |
Public Attributes | |
| Coordinate | a |
| One point on the line. | |
| Coordinate | b |
| Another point on the line. | |
Simple class representing a line.
Used by various functions in Kig.
| LineData::LineData | ( | const Coordinate & | na, |
| const Coordinate & | nb ) |
| const Coordinate LineData::dir | ( | ) | const |