Line.
| Modifier and Type | Field and Description |
|---|---|
| private static final double | DEFAULT_TOLERANCE
Default value for tolerance. |
| private final Line | line
Underlying line. |
| private final IntervalsSet | remainingRegion
Remaining region of the hyperplane. |
| Access | Constructor and Description |
|---|---|
| public | SubLine(final Line
underlying line line, final IntervalsSet remaining region of the line remainingRegion)Simple constructor. |
| public | |
| public | SubLine(final Vector3D
start point start, final Vector3D end point end)
Deprecated
as of 3.3, replaced with
SubLine(Vector3D, Vector3D, 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 Vector3D end point end, final double tolerance below which points are considered identical tolerance)Build an interval set from two points. |
| public List | |
| public Vector3D | 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. |
| DEFAULT_TOLERANCE | back to summary |
|---|---|
| private static final double DEFAULT_TOLERANCE Default value for tolerance. | |
| line | back to summary |
|---|---|
| private final Line line Underlying line. | |
| remainingRegion | back to summary |
|---|---|
| private final IntervalsSet remainingRegion Remaining region of the hyperplane. | |
| SubLine | back to summary |
|---|---|
| public SubLine(final Line line, final IntervalsSet remainingRegion) Simple constructor.
| |
| SubLine | back to summary |
|---|---|
| public SubLine(final Vector3D start, final Vector3D end, final double tolerance) throws MathIllegalArgumentException Create a sub-line from two endpoints.
| |
| SubLine | back to summary |
|---|---|
| public SubLine(final Vector3D start, final Vector3D end) throws MathIllegalArgumentException
Deprecated as of 3.3, replaced with Create a sub-line from two endpoints.
| |
| SubLine | back to summary |
|---|---|
| public SubLine(final Segment segment) throws MathIllegalArgumentException Create a sub-line from a segment.
| |
| buildIntervalSet | back to summary |
|---|---|
| private static IntervalsSet buildIntervalSet(final Vector3D start, final Vector3D end, final double tolerance) throws MathIllegalArgumentException Build an interval set from two points.
| |
| 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 Vector3D intersection(final SubLine subLine, final boolean includeEndPoints) Get the intersection of the instance and another sub-line.
This method is related to the
| |