Constructor and Description 

SubLine(Line line,
IntervalsSet remainingRegion)
Simple constructor.

SubLine(Segment segment)
Create a subline from a segment.

SubLine(Vector3D start,
Vector3D end)
Deprecated.
as of 3.3, replaced with
SubLine(Vector3D, Vector3D, double) 
SubLine(Vector3D start,
Vector3D end,
double tolerance)
Create a subline from two endpoints.

Modifier and Type  Method and Description 

List<Segment> 
getSegments()
Get the endpoints of the subline.

Vector3D 
intersection(SubLine subLine,
boolean includeEndPoints)
Get the intersection of the instance and another subline.

public SubLine(Line line, IntervalsSet remainingRegion)
line
 underlying lineremainingRegion
 remaining region of the linepublic SubLine(Vector3D start, Vector3D end, double tolerance) throws MathIllegalArgumentException
start
 start pointend
 end pointtolerance
 tolerance below which points are considered identicalMathIllegalArgumentException
 if the points are equalpublic SubLine(Vector3D start, Vector3D end) throws MathIllegalArgumentException
SubLine(Vector3D, Vector3D, double)
start
 start pointend
 end pointMathIllegalArgumentException
 if the points are equalpublic SubLine(Segment segment) throws MathIllegalArgumentException
segment
 single segment forming the sublineMathIllegalArgumentException
 if the segment endpoints are equalpublic List<Segment> getSegments()
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 subline is unbounded in the negative infinity direction, the start point of the first segment will have infinite coordinates. If the subline is unbounded in the positive infinity direction, the end point of the last segment will have infinite coordinates. So a subline covering the whole line will contain just one row and both elements of this row will have infinite coordinates. If the subline is empty, the returned list will contain 0 segments.
public Vector3D intersection(SubLine subLine, boolean includeEndPoints)
This method is related to the intersection
method in the Line
class, but in addition
to compute the point along infinite lines, it also checks the point
lies on both subline ranges.
subLine
 other subline which may intersect instanceincludeEndPoints
 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 returnedCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.