Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
org.apache.commons.geometry.euclidean.twod.shape |
This package provides utilities for constructing basic 2D shapes.
|
Modifier and Type | Method and Description |
---|---|
static Line |
Lines.fromPointAndAngle(Vector2D pt,
double angle,
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,
Precision.DoubleEquivalence precision)
Create a line from a point and direction.
|
static Line |
Lines.fromPoints(Vector2D p1,
Vector2D p2,
Precision.DoubleEquivalence precision)
Create a line from two points lying on the line.
|
Line |
LineSubset.getHyperplane() |
Line |
Line.SubspaceTransform.getLine()
Get the transformed line instance.
|
Line |
LineSubset.getLine()
Get the line containing this subset.
|
Line |
Line.reverse() |
Line |
Line.transform(Transform<Vector2D> transform) |
Modifier and Type | Method and Description |
---|---|
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.
|
double |
Line.distance(Line line)
Compute the shortest distance between this instance and
the given line.
|
boolean |
Line.eq(Line other,
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.
|
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 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)
Create a
LineConvexSubset spanning the entire line. |
protected Split<LineConvexSubset> |
ReverseRay.splitOnIntersection(Line splitter,
Vector2D intersection)
Split this instance using the given splitter line and intersection point.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static ConvexArea |
ConvexArea.fromBounds(Iterable<Line> bounds)
Create a convex area formed by the intersection of the negative half-spaces of the
given bounding lines.
|
Constructor and Description |
---|
EmbeddedTreeLineSubset(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.
|
SubspaceTransform(Line line,
AffineTransformMatrix1D transform)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Vector2D |
Circle.firstIntersection(Line line)
Get the first intersection point between the given line and this circle, or null
if no such point exists.
|
List<Vector2D> |
Circle.intersections(Line line)
Get the intersections of the given line with this circle.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.