#include <cartotype_arithmetic.h>
A straight line or line segment defined using floating-point numbers.
◆ TLineFP()
Creates a line from aStart to aEnd.
◆ DistanceExceeds()
bool CartoType::TLineFP::DistanceExceeds |
( |
double |
aX1, |
|
|
double |
aY1, |
|
|
double |
aX2, |
|
|
double |
aY2, |
|
|
int32_t |
aPoints, |
|
|
double |
aMaxDistance |
|
) |
| const |
Returns true if the distance from the line segment of either of the one or two supplied points exceeds aMaxDistance. This function is used when flattening curved paths, for finding whether the path is flat enough, which is when all the control points are near enough to the line segments.
◆ End()
const TPointFP & CartoType::TLineFP::End |
( |
| ) |
const |
|
inline |
Returns the end of the line segment.
◆ GetTangent()
void CartoType::TLineFP::GetTangent |
( |
double |
aDistance, |
|
|
TPointFP & |
aPoint |
|
) |
| const |
Returns a point at a certain distance along a line in aPoint. aDistance can be negative, or beyond the end of the line. In these cases the line is extended in the same direction.
◆ Length()
double CartoType::TLineFP::Length |
( |
| ) |
const |
|
inline |
Returns the length of the line segment.
◆ Reverse()
TLineFP CartoType::TLineFP::Reverse |
( |
| ) |
const |
|
inline |
Returns a reversed copy of this line.
◆ Start()
const TPointFP & CartoType::TLineFP::Start |
( |
| ) |
const |
|
inline |
Returns the start of the line segment.
The documentation for this class was generated from the following file: