public interface Path2d extends GeometricObject2d
Path2d
represents an arbitrary path between 2 points in a 2D space.Modifier and Type | Method and Description |
---|---|
Polyline |
asPolyline()
Convert the path to a polyline representation
|
Point2d |
begin()
Get the beginning of the path
|
double |
calculateLength()
Calculate the length of the path
|
Point2d |
end()
Get the end of the path
|
Iterator<Line2d> |
lineIterator()
Convert the path to a iterated polyline representation
|
calculateCentroid, calculateRegularBoundingBox, getHeight, getWidth, maxX, maxY, minX, minY, scale, scale, scaleCentroid, transform, translate
Polyline asPolyline()
Iterator<Line2d> lineIterator()
double calculateLength()