Uses of Class
org.apache.commons.geometry.euclidean.twod.Line
Packages that use Line
Package
Description
This package provides basic 2D geometry components.
This package provides utilities for constructing basic 2D shapes.
-
Uses of Line in org.apache.commons.geometry.euclidean.twod
Fields in org.apache.commons.geometry.euclidean.twod declared as LineModifier and TypeFieldDescriptionprivate final Line
Line.SubspaceTransform.line
The transformed line.private final Line
LineSubset.line
The line containing this instance.Methods in org.apache.commons.geometry.euclidean.twod that return LineModifier and TypeMethodDescriptionstatic Line
Lines.fromPointAndAngle
(Vector2D pt, double angle, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from a point lying on the line and an angle relative to the abscissa (x) axis.static Line
Lines.fromPointAndDirection
(Vector2D pt, Vector2D dir, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from a point and direction.static Line
Lines.fromPoints
(Vector2D p1, Vector2D p2, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from two points lying on the line.LineSubset.getHyperplane()
Get the hyperplane containing this instance.Line.SubspaceTransform.getLine()
Get the transformed line instance.LineSubset.getLine()
Get the line containing this subset.Line.reverse()
Return a hyperplane that has the opposite orientation as this instance.Transform this instance using the givenTransform
.Methods in org.apache.commons.geometry.euclidean.twod with parameters of type LineModifier and TypeMethodDescriptiondouble
Compute the angle in radians between this instance's direction and the direction of the given line.boolean
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
Compute the shortest distance between this instance and the given line.boolean
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.insertPartition
(Line partition) Insert a partition line.Line.intersection
(Line other) Get the intersection point of the instance and another line.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 List
<LinecastPoint2D> 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
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 online
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 ofline
.static ReverseRay
Lines.reverseRayFromLocation
(Line line, double endLocation) Construct a reverse ray starting at infinity and continuing in the direction ofline
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 ofline
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
Create aLineConvexSubset
spanning the entire 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.Method parameters in org.apache.commons.geometry.euclidean.twod with type arguments of type LineModifier and TypeMethodDescriptionstatic ConvexArea
ConvexArea.fromBounds
(Iterable<Line> bounds) Create a convex area formed by the intersection of the negative half-spaces of the given bounding lines.Constructors in org.apache.commons.geometry.euclidean.twod with parameters of type LineModifierConstructorDescriptionEmbeddedTreeLineSubset
(Line line) Construct a new, empty subset for the given line.EmbeddedTreeLineSubset
(Line line, boolean full) Construct a new subset for the given line.EmbeddedTreeLineSubset
(Line line, RegionBSPTree1D region) Construct a new instance from its defining line and subspace region.LinecastPoint2D
(Vector2D point, Vector2D normal, Line line) Construct a new instance from its components.(package private)
LineConvexSubset
(Line line) Construct a new instance for the given line.(package private)
LineSpanningSubset
(Line line) Construct a new instance for the given line.(package private)
LineSubset
(Line line) Construct a new instance based on the given line.(package private)
Construct a ray from a line and a start point.(package private)
ReverseRay
(Line line, Vector2D endPoint) Construct a new instance from the given line and end point.(package private)
Construct a new instance from a line and two points on the line.SubspaceTransform
(Line line, AffineTransformMatrix1D transform) Simple constructor. -
Uses of Line in org.apache.commons.geometry.euclidean.twod.shape
Methods in org.apache.commons.geometry.euclidean.twod.shape with parameters of type LineModifier and TypeMethodDescriptionCircle.firstIntersection
(Line line) Get the first intersection point between the given line and this circle, or null if no such point exists.Circle.intersections
(Line line) Get the intersections of the given line with this circle.