Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
org.apache.commons.geometry.euclidean.twod.path |
This package provides classes for working with connected sequences of
line segments and other line subsets.
|
org.apache.commons.geometry.euclidean.twod.shape |
This package provides utilities for constructing basic 2D shapes.
|
Modifier and Type | Class and Description |
---|---|
class |
Ray
Class representing a ray in 2D Euclidean space.
|
class |
ReverseRay
Class representing a portion of a line in 2D Euclidean space that starts at infinity and
continues in the direction of the line up to a single end point.
|
class |
Segment
Class representing a line segment in 2D Euclidean space.
|
Modifier and Type | Method and Description |
---|---|
abstract LineConvexSubset |
LineConvexSubset.reverse() |
LineConvexSubset |
Line.span() |
static LineConvexSubset |
Lines.span(Line line)
Create a
LineConvexSubset spanning the entire 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.
|
abstract LineConvexSubset |
LineConvexSubset.transform(Transform<Vector2D> transform) |
LineConvexSubset |
ConvexArea.trim(HyperplaneConvexSubset<Vector2D> convexSubset) |
Modifier and Type | Method and Description |
---|---|
Iterable<LineConvexSubset> |
RegionBSPTree2D.boundaries() |
Stream<LineConvexSubset> |
ConvexArea.boundaryStream() |
Stream<LineConvexSubset> |
RegionBSPTree2D.boundaryStream() |
List<LineConvexSubset> |
RegionBSPTree2D.getBoundaries() |
Split<LineConvexSubset> |
LineConvexSubset.split(Hyperplane<Vector2D> splitter) |
protected Split<LineConvexSubset> |
ReverseRay.splitOnIntersection(Line splitter,
Vector2D intersection)
Split this instance using the given splitter line and intersection point.
|
List<LineConvexSubset> |
EmbeddedTreeLineSubset.toConvex() |
List<LineConvexSubset> |
LineConvexSubset.toConvex() |
abstract List<LineConvexSubset> |
LineSubset.toConvex() |
Modifier and Type | Method and Description |
---|---|
void |
EmbeddedTreeLineSubset.add(LineConvexSubset subset)
Add a line subset to this instance.
|
RegionBSPTree2D.PartitionedRegionBuilder2D |
RegionBSPTree2D.PartitionedRegionBuilder2D.insertBoundary(LineConvexSubset boundary)
Insert a region boundary.
|
RegionBSPTree2D.PartitionedRegionBuilder2D |
RegionBSPTree2D.PartitionedRegionBuilder2D.insertPartition(LineConvexSubset partition)
Insert a line convex subset as a partition.
|
default List<LinecastPoint2D> |
BoundarySource2D.linecast(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
a list of all intersections in order of increasing position along the line.
|
List<LinecastPoint2D> |
Linecastable2D.linecast(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
a list of all intersections in order of increasing position along the line.
|
List<LinecastPoint2D> |
RegionBSPTree2D.linecast(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
a list of all intersections in order of increasing position along the line.
|
default LinecastPoint2D |
BoundarySource2D.linecastFirst(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line subset
from its start location.
|
LinecastPoint2D |
Linecastable2D.linecastFirst(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line subset
from its start location.
|
LinecastPoint2D |
RegionBSPTree2D.linecastFirst(LineConvexSubset subset)
Intersect the given line subset against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line subset
from its start location.
|
static BoundarySource2D |
BoundarySource2D.of(LineConvexSubset... boundaries)
Return a
BoundarySource2D instance containing the given boundaries. |
Modifier and Type | Method and Description |
---|---|
static RegionBSPTree2D |
RegionBSPTree2D.from(Iterable<? extends LineConvexSubset> boundaries)
Construct a new tree from the given boundaries.
|
static RegionBSPTree2D |
RegionBSPTree2D.from(Iterable<? extends LineConvexSubset> boundaries,
boolean full)
Construct a new tree from the given boundaries.
|
RegionBSPTree2D.PartitionedRegionBuilder2D |
RegionBSPTree2D.PartitionedRegionBuilder2D.insertBoundaries(Iterable<? extends LineConvexSubset> boundaries)
Insert a collection of region boundaries.
|
static BoundarySource2D |
BoundarySource2D.of(Collection<LineConvexSubset> boundaries)
Return a
BoundarySource2D instance containing the given boundaries. |
Constructor and Description |
---|
BoundaryList2D(List<? extends LineConvexSubset> boundaries)
Construct a new instance with the given list of boundaries.
|
ConvexArea(List<LineConvexSubset> boundaries)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
LineConvexSubset |
LinePath.getEnd()
Get the line subset at the end of the path or null if the path is empty.
|
LineConvexSubset |
LinePath.Builder.getEnd()
Get the line subset at the end of the path or null if it does not exist.
|
LineConvexSubset |
AbstractLinePathConnector.ConnectableLineSubset.getLineSubset()
Get the line subset for this instance.
|
LineConvexSubset |
LinePath.getStart()
Get the line subset at the start of the path or null if the path is empty.
|
LineConvexSubset |
LinePath.Builder.getStart()
Get the line subset at the start of the path or null if it does not exist.
|
Modifier and Type | Method and Description |
---|---|
Stream<LineConvexSubset> |
LinePath.boundaryStream() |
List<LineConvexSubset> |
LinePath.getElements()
Get the sequence of line subsets comprising the path.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLinePathConnector.add(LineConvexSubset subset)
Add a line subset to the connector, leaving it unconnected until a later call to
to
AbstractLinePathConnector.connect(Iterable) or AbstractLinePathConnector.connectAll() . |
LinePath.Builder |
LinePath.Builder.append(LineConvexSubset subset)
Append a line subset to the end of the path.
|
static LinePath |
LinePath.from(LineConvexSubset... subsets)
Build a new path from the given line subsets.
|
LinePath.Builder |
LinePath.Builder.prepend(LineConvexSubset subset)
Prepend a line subset to the beginning of the path.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractLinePathConnector.add(Iterable<? extends LineConvexSubset> subsets)
Add a collection of line subsets to the connector, leaving them unconnected
until a later call to
AbstractLinePathConnector.connect(Iterable) or
AbstractLinePathConnector.connectAll() . |
void |
AbstractLinePathConnector.connect(Iterable<? extends LineConvexSubset> subsets)
Add a collection of line subsets to the connector and attempt to connect each new
line subset with existing subsets.
|
List<LinePath> |
AbstractLinePathConnector.connectAll(Iterable<LineConvexSubset> subsets)
Add the given line subsets to this instance and connect all current
subsets into connected paths.
|
static List<LinePath> |
InteriorAngleLinePathConnector.connectMaximized(Collection<LineConvexSubset> subsets)
Convenience method for connecting a collection of line subsets with interior angles
maximized when possible.
|
static List<LinePath> |
InteriorAngleLinePathConnector.connectMinimized(Collection<LineConvexSubset> subsets)
Convenience method for connecting a collection of line subsets with interior angles minimized
when possible.
|
static LinePath |
LinePath.from(Collection<? extends LineConvexSubset> subsets)
Build a new path from the given line subsets.
|
Constructor and Description |
---|
ConnectableLineSubset(LineConvexSubset subset)
Create a new instance from the given line subset.
|
Modifier and Type | Method and Description |
---|---|
List<LinecastPoint2D> |
Circle.linecast(LineConvexSubset segment)
Intersect the given line subset against the boundaries in this instance, returning
a list of all intersections in order of increasing position along the line.
|
LinecastPoint2D |
Circle.linecastFirst(LineConvexSubset segment)
Intersect the given line subset against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line subset
from its start location.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.