-
public class PolygonHelper.LineRepresentation of line
Calculates line by two pointsand finds intersection points with other linesGeneral line formula isa * x + b * y + c = 0
-
-
Field Summary
Fields Modifier and Type Field Description private PointFintersectionPoint
-
Method Summary
Modifier and Type Method Description PointFgetIntersectionPoint(PolygonHelper.Line line)PointFgetIntersectionPoint(PolygonHelper.Line line)voidcalculateLine(PointF start, PointF end)Calculate all 3 components of the line doublegetDistanceToPoint(PointF point)Calculates distance to pointShould be used after line components are calculated -
-
Method Detail
-
getIntersectionPoint
PointF getIntersectionPoint(PolygonHelper.Line line)
-
getIntersectionPoint
PointF getIntersectionPoint(PolygonHelper.Line line)
-
calculateLine
void calculateLine(PointF start, PointF end)
Calculate all 3 components of the line
- Parameters:
start- starting point of segment laying on this lineend- ending point of segment laying on this line
-
getDistanceToPoint
double getDistanceToPoint(PointF point)
Calculates distance to pointShould be used after line components are calculated
-
-
-
-