Package | Description |
---|---|
org.apache.commons.math3.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
org.apache.commons.math3.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
org.apache.commons.math3.geometry.euclidean.twod.hull |
This package provides algorithms to generate the convex hull
for a set of points in an two-dimensional euclidean space.
|
Modifier and Type | Field and Description |
---|---|
private Transform<Euclidean2D,Euclidean1D> |
PolyhedronsSet.RotationTransform.cachedTransform
Cached 2D transform valid inside the cached original hyperplane.
|
private Transform<Euclidean2D,Euclidean1D> |
PolyhedronsSet.TranslationTransform.cachedTransform
Cached 2D transform valid inside the cached original hyperplane.
|
Modifier and Type | Method and Description |
---|---|
Euclidean2D |
Euclidean3D.getSubSpace()
Get the n-1 dimension subspace of this space.
|
Modifier and Type | Method and Description |
---|---|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.RotationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.TranslationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
protected AbstractSubHyperplane<Euclidean3D,Euclidean2D> |
SubPlane.buildNew(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
Modifier and Type | Method and Description |
---|---|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.RotationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean2D> |
PolyhedronsSet.TranslationTransform.apply(SubHyperplane<Euclidean2D> sub,
Hyperplane<Euclidean3D> original,
Hyperplane<Euclidean3D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
protected AbstractSubHyperplane<Euclidean3D,Euclidean2D> |
SubPlane.buildNew(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
Vector3D |
Plane.toSpace(Point<Euclidean2D> point)
Transform an in-plane point into a 3D space point.
|
Vector3D |
Plane.toSpace(Vector<Euclidean2D> vector)
Transform a sub-space point into a space point.
|
Constructor and Description |
---|
SubPlane(Hyperplane<Euclidean3D> hyperplane,
Region<Euclidean2D> remainingRegion)
Simple constructor.
|
Modifier and Type | Field and Description |
---|---|
private static Euclidean2D |
Euclidean2D.LazyHolder.INSTANCE
Cached field instance.
|
Modifier and Type | Field and Description |
---|---|
private BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.endNode
Node whose intersection with current node defines end point.
|
private BSPTree<Euclidean2D> |
PolygonsSet.Edge.node
Node whose cut hyperplane contains this edge.
|
private BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.node
Node containing segment.
|
private Region<Euclidean2D> |
NestedLoops.polygon
Polygon enclosing a finite region.
|
private BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.startNode
Node whose intersection with current node defines start point.
|
Modifier and Type | Method and Description |
---|---|
static Euclidean2D |
Euclidean2D.getInstance()
Get the unique instance.
|
Modifier and Type | Method and Description |
---|---|
EnclosingBall<Euclidean2D,Vector2D> |
DiskGenerator.ballOnSupport(java.util.List<Vector2D> support)
Create a ball whose boundary lies on prescribed support points.
|
protected AbstractSubHyperplane<Euclidean2D,Euclidean1D> |
SubLine.buildNew(Hyperplane<Euclidean2D> hyperplane,
Region<Euclidean1D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.getEndNode()
Get the node whose intersection with current node defines end point.
|
BSPTree<Euclidean2D> |
PolygonsSet.Edge.getNode()
Get the node whose cut hyperplane contains this edge.
|
BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.getNode()
Get the node containing segment.
|
BSPTree<Euclidean2D> |
PolygonsSet.ConnectableSegment.getStartNode()
Get the node whose intersection with current node defines start point.
|
static Transform<Euclidean2D,Euclidean1D> |
Line.getTransform(java.awt.geom.AffineTransform transform)
Get a
Transform embedding an affine transform. |
Point<Euclidean2D> |
Line.project(Point<Euclidean2D> point)
Project a point to the hyperplane.
|
private BSPTree<Euclidean2D> |
PolygonsSet.SegmentsBuilder.selectClosest(Vector2D point,
java.lang.Iterable<BSPTree<Euclidean2D>> candidates)
Select the node whose cut sub-hyperplane is closest to specified point.
|
SubHyperplane.SplitSubHyperplane<Euclidean2D> |
SubLine.split(Hyperplane<Euclidean2D> hyperplane)
Split the instance in two parts by an hyperplane.
|
private static BSPTree<Euclidean2D> |
PolygonsSet.verticesToTree(double hyperplaneThickness,
Vector2D... vertices)
Build the BSP tree of a polygons set from a simple list of vertices.
|
Modifier and Type | Method and Description |
---|---|
Vector2D |
Vector2D.add(double factor,
Vector<Euclidean2D> v)
Add a scaled vector to the instance.
|
Vector2D |
Vector2D.add(Vector<Euclidean2D> v)
Add a vector to the instance.
|
private void |
PolygonsSet.SegmentsBuilder.addContribution(SubHyperplane<Euclidean2D> sub,
BSPTree<Euclidean2D> node,
java.lang.Iterable<BSPTree<Euclidean2D>> splitters,
boolean reversed)
Add the contribution of a boundary facet.
|
private void |
PolygonsSet.SegmentsBuilder.addContribution(SubHyperplane<Euclidean2D> sub,
BSPTree<Euclidean2D> node,
java.lang.Iterable<BSPTree<Euclidean2D>> splitters,
boolean reversed)
Add the contribution of a boundary facet.
|
private void |
PolygonsSet.SegmentsBuilder.addContribution(SubHyperplane<Euclidean2D> sub,
BSPTree<Euclidean2D> node,
java.lang.Iterable<BSPTree<Euclidean2D>> splitters,
boolean reversed)
Add the contribution of a boundary facet.
|
Line |
Line.LineTransform.apply(Hyperplane<Euclidean2D> hyperplane)
Transform an hyperplane of a space.
|
Vector2D |
Line.LineTransform.apply(Point<Euclidean2D> point)
Transform a point of a space.
|
SubHyperplane<Euclidean1D> |
Line.LineTransform.apply(SubHyperplane<Euclidean1D> sub,
Hyperplane<Euclidean2D> original,
Hyperplane<Euclidean2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Euclidean1D> |
Line.LineTransform.apply(SubHyperplane<Euclidean1D> sub,
Hyperplane<Euclidean2D> original,
Hyperplane<Euclidean2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
PolygonsSet |
PolygonsSet.buildNew(BSPTree<Euclidean2D> tree)
Build a region using the instance as a prototype.
|
protected AbstractSubHyperplane<Euclidean2D,Euclidean1D> |
SubLine.buildNew(Hyperplane<Euclidean2D> hyperplane,
Region<Euclidean1D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
double |
Vector2D.distance(Point<Euclidean2D> p)
Compute the distance between the instance and another point.
|
double |
Vector2D.distance(Vector<Euclidean2D> p)
Compute the distance between the instance and another vector according to the L2 norm.
|
double |
Vector2D.distance1(Vector<Euclidean2D> p)
Compute the distance between the instance and another vector according to the L1 norm.
|
double |
Vector2D.distanceInf(Vector<Euclidean2D> p)
Compute the distance between the instance and another vector according to the L∞ norm.
|
double |
Vector2D.distanceSq(Vector<Euclidean2D> p)
Compute the square of the distance between the instance and another vector.
|
double |
Vector2D.dotProduct(Vector<Euclidean2D> v)
Compute the dot-product of the instance and another vector.
|
java.lang.StringBuffer |
Vector2DFormat.format(Vector<Euclidean2D> vector,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats a
Vector object to produce a string. |
double |
Line.getOffset(Point<Euclidean2D> point)
Get the offset (oriented distance) of a point.
|
double |
Line.getOffset(Vector<Euclidean2D> vector)
Get the offset (oriented distance) of a vector.
|
private static void |
PolygonsSet.insertEdges(double hyperplaneThickness,
BSPTree<Euclidean2D> node,
java.util.List<PolygonsSet.Edge> edges)
Recursively build a tree by inserting cut sub-hyperplanes.
|
Point<Euclidean2D> |
Line.project(Point<Euclidean2D> point)
Project a point to the hyperplane.
|
boolean |
Line.sameOrientationAs(Hyperplane<Euclidean2D> other)
Check if the instance has the same orientation as another hyperplane.
|
private BSPTree<Euclidean2D> |
PolygonsSet.SegmentsBuilder.selectClosest(Vector2D point,
java.lang.Iterable<BSPTree<Euclidean2D>> candidates)
Select the node whose cut sub-hyperplane is closest to specified point.
|
void |
PolygonsSet.Edge.setNode(BSPTree<Euclidean2D> node)
Set the node whose cut hyperplane contains this edge.
|
Side |
SubLine.side(Hyperplane<Euclidean2D> hyperplane)
Compute the relative position of the instance with respect
to an hyperplane.
|
SubHyperplane.SplitSubHyperplane<Euclidean2D> |
SubLine.split(Hyperplane<Euclidean2D> hyperplane)
Split the instance in two parts by an hyperplane.
|
Vector2D |
Vector2D.subtract(double factor,
Vector<Euclidean2D> v)
Subtract a scaled vector from the instance.
|
Vector2D |
Vector2D.subtract(Vector<Euclidean2D> p)
Subtract a vector from the instance.
|
Vector1D |
Line.toSubSpace(Point<Euclidean2D> point)
Transform a space point into a sub-space point.
|
Vector1D |
Line.toSubSpace(Vector<Euclidean2D> vector)
Transform a space point into a sub-space point.
|
void |
PolygonsSet.SegmentsBuilder.visitInternalNode(BSPTree<Euclidean2D> node)
Visit a BSP tree node node having a non-null sub-hyperplane.
|
void |
PolygonsSet.SegmentsBuilder.visitLeafNode(BSPTree<Euclidean2D> node)
Visit a leaf BSP tree node node having a null sub-hyperplane.
|
BSPTreeVisitor.Order |
PolygonsSet.SegmentsBuilder.visitOrder(BSPTree<Euclidean2D> node)
Determine the visit order for this node.
|
Constructor and Description |
---|
ConnectableSegment(Vector2D start,
Vector2D end,
Line line,
BSPTree<Euclidean2D> node,
BSPTree<Euclidean2D> startNode,
BSPTree<Euclidean2D> endNode)
Build a segment.
|
ConnectableSegment(Vector2D start,
Vector2D end,
Line line,
BSPTree<Euclidean2D> node,
BSPTree<Euclidean2D> startNode,
BSPTree<Euclidean2D> endNode)
Build a segment.
|
ConnectableSegment(Vector2D start,
Vector2D end,
Line line,
BSPTree<Euclidean2D> node,
BSPTree<Euclidean2D> startNode,
BSPTree<Euclidean2D> endNode)
Build a segment.
|
PolygonsSet(BSPTree<Euclidean2D> tree)
Deprecated.
as of 3.3, replaced with
PolygonsSet.PolygonsSet(BSPTree, double) |
PolygonsSet(BSPTree<Euclidean2D> tree,
double tolerance)
Build a polygons set from a BSP tree.
|
PolygonsSet(java.util.Collection<SubHyperplane<Euclidean2D>> boundary)
Deprecated.
as of 3.3, replaced with
PolygonsSet.PolygonsSet(Collection, double) |
PolygonsSet(java.util.Collection<SubHyperplane<Euclidean2D>> boundary,
double tolerance)
Build a polygons set from a Boundary REPresentation (B-rep).
|
SubLine(Hyperplane<Euclidean2D> hyperplane,
Region<Euclidean1D> remainingRegion)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Region<Euclidean2D> |
ConvexHull2D.createRegion()
Returns a new region that is enclosed by the convex hull.
|