Line.
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_TOLERANCE
Default value for tolerance. |
| Access | Constructor and Description |
|---|---|
| public | SubLine(final Hyperplane<Euclidean2D>
underlying hyperplane hyperplane, final Region<Euclidean1D> remaining region of the hyperplane remainingRegion)Simple constructor. |
| public | |
| public | SubLine(final Vector2D
start point start, final Vector2D end point end)
Deprecated
as of 3.3, replaced with
SubLine(Vector2D, Vector2D, double)
Create a sub-line from two endpoints. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static IntervalsSet | Returns: an interval setstart point start, final Vector2D end point end, final double tolerance below which points are considered identical tolerance)Build an interval set from two points. |
| protected AbstractSubHyperplane | buildNew(final Hyperplane<Euclidean2D>
underlying hyperplane hyperplane, final Region<Euclidean1D> remaining region of the hyperplane remainingRegion)Implements abstract org. Build a sub-hyperplane from an hyperplane and a region. |
| public List | |
| public Vector2D | Returns: the intersection point if there is one, null if the sub-lines don't intersectother sub-line which may intersect instance subLine, final boolean if true, endpoints are considered to belong to
instance (i.e. they are closed sets) and may be returned, otherwise endpoints
are considered to not belong to instance (i.e. they are open sets) and intersection
occurring on endpoints lead to null being returned includeEndPoints)Get the intersection of the instance and another sub-line. |
| public SubHyperplane. | split(final Hyperplane<Euclidean2D>
splitting hyperplane hyperplane)Implements abstract org. Implements org. Split the instance in two parts by an hyperplane. |
| DEFAULT_TOLERANCE | back to summary |
|---|---|
| private static final double DEFAULT_TOLERANCE Default value for tolerance. | |
| SubLine | back to summary |
|---|---|
| public SubLine(final Hyperplane<Euclidean2D> hyperplane, final Region<Euclidean1D> remainingRegion) Simple constructor.
| |
| SubLine | back to summary |
|---|---|
| public SubLine(final Vector2D start, final Vector2D end, final double tolerance) Create a sub-line from two endpoints. | |
| SubLine | back to summary |
|---|---|
| public SubLine(final Vector2D start, final Vector2D end)
Deprecated as of 3.3, replaced with Create a sub-line from two endpoints.
| |
| SubLine | back to summary |
|---|---|
| public SubLine(final Segment segment) Create a sub-line from a segment.
| |
| buildIntervalSet | back to summary |
|---|---|
| private static IntervalsSet buildIntervalSet(final Vector2D start, final Vector2D end, final double tolerance) Build an interval set from two points.
| |
| buildNew | back to summary |
|---|---|
| protected AbstractSubHyperplane Implements abstract org. Doc from org. Build a sub-hyperplane from an hyperplane and a region.
| |
| getSegments | back to summary |
|---|---|
| public List Get the endpoints of the sub-line. A subline may be any arbitrary number of disjoints segments, so the endpoints are provided as a list of endpoint pairs. Each element of the list represents one segment, and each segment contains a start point at index 0 and an end point at index 1. If the sub-line is unbounded in the negative infinity direction, the start point of the first segment will have infinite coordinates. If the sub-line is unbounded in the positive infinity direction, the end point of the last segment will have infinite coordinates. So a sub-line covering the whole line will contain just one row and both elements of this row will have infinite coordinates. If the sub-line is empty, the returned list will contain 0 segments. | |
| intersection | back to summary |
|---|---|
| public Vector2D intersection(final SubLine subLine, final boolean includeEndPoints) Get the intersection of the instance and another sub-line.
This method is related to the
| |
| split | back to summary |
|---|---|
| public SubHyperplane. Implements abstract org. Implements org. Doc from org. Split the instance in two parts by an hyperplane.
| |