Package org.djutils.draw.line
The d1 package provides an interface and different implementations for lines.
Various types of line are implemented:
Various types of line are implemented:
- LineSegment: straight connection between two points
- PolyLine: multiple consecutive line segments where the end point of each segment (except the last) is the start of the next
- Polygon: multiple consecutive line segments where the last end point equals the first start point
- Ray: straight connection from one (finite) point to infinity (with a precisely defined direction)
Copyright (c) 2020-2021 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
-
Interface Summary Interface Description LineSegment<P extends Point<P>,R extends Ray<R,P>> LineSegment is the interface for a line segment bound by 2 end points.PolyLine<L extends PolyLine<L,P,R,LS>,P extends Point<P>,R extends Ray<R,P>,LS extends LineSegment<P,R>> PolyLine is the interface for PolyLine2d and PolyLine3d implementations.PolyLine.TransitionFunction Interface for transition function.Project<P extends Point<P>> Project.java.Ray<R extends Ray<R,P>,P extends Point<P>> A Ray is a half-line; it has one end point with non-infinite coordinates; the other end point is infinitely far away. -
Class Summary Class Description Bezier Generation of Bézier curves.Clothoid Approximate a clothoid with a PolyLine3d.ConvexHull ConvexHull.java.LineSegment2d LineSegment2d is a line segment bound by 2 end points in 2D-space.LineSegment3d LineSegment3d is a line segment bound by 2 end points in 3D-space.Polygon2d Polygon2d.java.Polygon3d Polygon3d.java.PolyLine2d Implementation of PolyLine for 2D space.PolyLine3d Implementation of PolyLine for 3D space.Ray2d Ray2d is a half-line; it has one end point with non-infinite coordinates; the other end point is infinitely far away.Ray3d Ray3d is a half-line; it has one end point with non-infinite coordinates; the other end point is infinitely far away.