Package | Description |
---|---|
org.apache.commons.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
Modifier and Type | Method and Description |
---|---|
Bounds2D |
Bounds2D.Builder.build()
Create a new
Bounds2D instance from the values in this builder. |
static Bounds2D |
Bounds2D.from(Iterable<Vector2D> points)
Construct a new instance from the given points.
|
static Bounds2D |
Bounds2D.from(Vector2D first,
Vector2D... more)
Construct a new instance from the given points.
|
Bounds2D |
ReverseRay.getBounds()
Get a
Bounds2D object defining an axis-aligned bounding box containing all
vertices for this subset. |
default Bounds2D |
BoundarySource2D.getBounds()
Get a
Bounds2D object defining the axis-aligned box containing all vertices
in the boundaries for this instance. |
Bounds2D |
Segment.getBounds()
Get a
Bounds2D object defining an axis-aligned bounding box containing all
vertices for this subset. |
Bounds2D |
EmbeddedTreeLineSubset.getBounds()
Get a
Bounds2D object defining an axis-aligned bounding box containing all
vertices for this subset. |
Bounds2D |
Ray.getBounds()
Get a
Bounds2D object defining an axis-aligned bounding box containing all
vertices for this subset. |
abstract Bounds2D |
LineSubset.getBounds()
Get a
Bounds2D object defining an axis-aligned bounding box containing all
vertices for this subset. |
Bounds2D |
Bounds2D.intersection(Bounds2D other)
Return the intersection of this bounding box and the argument, or null if no intersection exists.
|
Modifier and Type | Method and Description |
---|---|
Bounds2D.Builder |
Bounds2D.Builder.add(Bounds2D bounds)
Add the min and max points from the given bounds to this instance.
|
RegionBSPTree2D.PartitionedRegionBuilder2D |
RegionBSPTree2D.PartitionedRegionBuilder2D.insertAxisAlignedGrid(Bounds2D bounds,
int level,
Precision.DoubleEquivalence precision)
Insert a grid of partitions.
|
Bounds2D |
Bounds2D.intersection(Bounds2D other)
Return the intersection of this bounding box and the argument, or null if no intersection exists.
|
boolean |
Bounds2D.intersects(Bounds2D other)
Return true if any point on the interior or boundary of this instance is also considered to be
on the interior or boundary of the argument.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.