double |
Line.angle(Line other) |
Compute the angle in radians between this instance's direction and the direction
of the given line.
|
boolean |
Line.contains(Line line) |
Check if this instance completely contains the other line.
|
(package private) <T extends LineSubset> Split<T> |
LineSubset.createSplitResult(Line splitter,
T low,
T high) |
Create a split result for the given splitter line, given the low and high split portion of this
instance.
|
double |
Line.distance(Line line) |
Compute the shortest distance between this instance and
the given line.
|
boolean |
Line.eq(Line other,
org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) |
Return true if this instance should be considered equivalent to the argument, using the
given precision context for comparison.
|
static ConvexArea |
ConvexArea.fromBounds(Line... bounds) |
Create a convex area formed by the intersection of the negative half-spaces of the
given bounding lines.
|
(package private) <T extends LineSubset> Split<T> |
LineSubset.getNonIntersectingSplitResult(Line splitter,
T subset) |
Get a split result for cases where no intersection exists between the splitting line and the
line underlying the given line subset.
|
RegionBSPTree2D.PartitionedRegionBuilder2D |
RegionBSPTree2D.PartitionedRegionBuilder2D.insertPartition(Line partition) |
Insert a partition line.
|
Vector2D |
Line.intersection(Line other) |
Get the intersection point of the instance and another line.
|
Vector2D |
LineSubset.intersection(Line inputLine) |
Get the unique intersection of this subset with the given line.
|
boolean |
Line.isParallel(Line line) |
Check if the instance is parallel to another line.
|
default java.util.List<LinecastPoint2D> |
Linecastable2D.linecast(Line line) |
Intersect the given line against the boundaries in this instance, returning a
list of all intersections in order of increasing position along the line.
|
default LinecastPoint2D |
Linecastable2D.linecastFirst(Line line) |
Intersect the given line against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line from
infinity.
|
double |
Line.offset(Line line) |
Get the offset (oriented distance) of the given line relative to this instance.
|
static Ray |
Lines.rayFromLocation(Line line,
double startLocation) |
Construct a ray starting at the given 1D location on line and continuing in the
direction of the line to infinity.
|
static Ray |
Lines.rayFromPoint(Line line,
Vector2D startPoint) |
Construct a ray starting at the given point and continuing to infinity in the direction
of line .
|
static ReverseRay |
Lines.reverseRayFromLocation(Line line,
double endLocation) |
Construct a reverse ray starting at infinity and continuing in the direction of line
to the given 1D end location.
|
static ReverseRay |
Lines.reverseRayFromPoint(Line line,
Vector2D endPoint) |
Construct a reverse ray starting at infinity and continuing in the direction of line
to the given end point.
|
static Segment |
Lines.segmentFromLocations(Line line,
double a,
double b) |
Construct a new line segment from a pair of 1D locations on a line.
|
static Segment |
Lines.segmentFromPoints(Line line,
Vector2D a,
Vector2D b) |
Construct a new line segment from a line and a pair of points.
|
static LineConvexSubset |
Lines.span(Line line) |
|
(package private) abstract Split<LineConvexSubset> |
LineConvexSubset.splitOnIntersection(Line splitter,
Vector2D intersection) |
Split this instance using the given splitter line and intersection point.
|
(package private) Split<LineConvexSubset> |
LineSpanningSubset.splitOnIntersection(Line splitter,
Vector2D intersection) |
Split this instance using the given splitter line and intersection point.
|
(package private) Split<LineConvexSubset> |
Ray.splitOnIntersection(Line splitter,
Vector2D intersection) |
Split this instance using the given splitter line and intersection point.
|
protected Split<LineConvexSubset> |
ReverseRay.splitOnIntersection(Line splitter,
Vector2D intersection) |
Split this instance using the given splitter line and intersection point.
|
(package private) Split<LineConvexSubset> |
Segment.splitOnIntersection(Line splitter,
Vector2D intersection) |
Split this instance using the given splitter line and intersection point.
|
(package private) boolean |
LineSubset.splitterPlusIsPositiveFacing(Line splitterLine) |
Return true if the plus side of the given splitter line is facing in the positive direction
of this line.
|
static LineConvexSubset |
Lines.subsetFromInterval(Line line,
double a,
double b) |
Create a line subset from a line and a 1D interval on the line.
|
static LineConvexSubset |
Lines.subsetFromInterval(Line line,
Interval interval) |
Create a line subset from a line and a 1D interval on the line.
|
(package private) static void |
Lines.validateLinesEquivalent(Line expected,
Line actual) |
Validate that the actual line is equivalent to the expected line, throwing an exception if not.
|