Package | Description |
---|---|
org.apache.commons.math3.geometry.spherical.twod |
This package provides basic geometry components on the 2-sphere.
|
Modifier and Type | Field and Description |
---|---|
private static Sphere2D |
Sphere2D.LazyHolder.INSTANCE
Cached field instance.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<Edge,BSPTree<Sphere2D>> |
EdgesBuilder.edgeToNode
Built edges and their associated nodes.
|
private java.util.Map<BSPTree<Sphere2D>,java.util.List<Edge>> |
EdgesBuilder.nodeToEdgesList
Reversed map.
|
private BSPTree<Sphere2D> |
EdgesBuilder.root
Root of the tree.
|
Modifier and Type | Method and Description |
---|---|
static Sphere2D |
Sphere2D.getInstance()
Get the unique instance.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractSubHyperplane<Sphere2D,Sphere1D> |
SubCircle.buildNew(Hyperplane<Sphere2D> hyperplane,
Region<Sphere1D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
EnclosingBall<Sphere2D,S2Point> |
SphericalPolygonsSet.getEnclosingCap()
Get a spherical cap enclosing the polygon.
|
static Transform<Sphere2D,Sphere1D> |
Circle.getTransform(Rotation rotation)
Get a
Transform embedding a 3D rotation. |
Point<Sphere2D> |
Circle.project(Point<Sphere2D> point)
Project a point to the hyperplane.
|
SubHyperplane.SplitSubHyperplane<Sphere2D> |
SubCircle.split(Hyperplane<Sphere2D> hyperplane)
Split the instance in two parts by an hyperplane.
|
private static BSPTree<Sphere2D> |
SphericalPolygonsSet.verticesToTree(double hyperplaneThickness,
S2Point... vertices)
Build the BSP tree of a polygons set from a simple list of vertices.
|
Modifier and Type | Method and Description |
---|---|
private void |
EdgesBuilder.addContribution(SubCircle sub,
boolean reversed,
BSPTree<Sphere2D> node)
Add the contribution of a boundary edge.
|
Circle |
Circle.CircleTransform.apply(Hyperplane<Sphere2D> hyperplane)
Transform an hyperplane of a space.
|
S2Point |
Circle.CircleTransform.apply(Point<Sphere2D> point)
Transform a point of a space.
|
SubHyperplane<Sphere1D> |
Circle.CircleTransform.apply(SubHyperplane<Sphere1D> sub,
Hyperplane<Sphere2D> original,
Hyperplane<Sphere2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SubHyperplane<Sphere1D> |
Circle.CircleTransform.apply(SubHyperplane<Sphere1D> sub,
Hyperplane<Sphere2D> original,
Hyperplane<Sphere2D> transformed)
Transform a sub-hyperplane embedded in an hyperplane.
|
SphericalPolygonsSet |
SphericalPolygonsSet.buildNew(BSPTree<Sphere2D> tree)
Build a region using the instance as a prototype.
|
protected AbstractSubHyperplane<Sphere2D,Sphere1D> |
SubCircle.buildNew(Hyperplane<Sphere2D> hyperplane,
Region<Sphere1D> remainingRegion)
Build a sub-hyperplane from an hyperplane and a region.
|
double |
S2Point.distance(Point<Sphere2D> point)
Compute the distance between the instance and another point.
|
double |
Circle.getOffset(Point<Sphere2D> point)
Get the offset (oriented distance) of a point.
|
private static void |
SphericalPolygonsSet.insertEdges(double hyperplaneThickness,
BSPTree<Sphere2D> node,
java.util.List<Edge> edges)
Recursively build a tree by inserting cut sub-hyperplanes.
|
Point<Sphere2D> |
Circle.project(Point<Sphere2D> point)
Project a point to the hyperplane.
|
boolean |
Circle.sameOrientationAs(Hyperplane<Sphere2D> other)
Check if the instance has the same orientation as another hyperplane.
|
Side |
SubCircle.side(Hyperplane<Sphere2D> hyperplane)
Compute the relative position of the instance with respect
to an hyperplane.
|
SubHyperplane.SplitSubHyperplane<Sphere2D> |
SubCircle.split(Hyperplane<Sphere2D> hyperplane)
Split the instance in two parts by an hyperplane.
|
S1Point |
Circle.toSubSpace(Point<Sphere2D> point)
Transform a space point into a sub-space point.
|
void |
EdgesBuilder.visitInternalNode(BSPTree<Sphere2D> node)
Visit a BSP tree node node having a non-null sub-hyperplane.
|
void |
PropertiesComputer.visitInternalNode(BSPTree<Sphere2D> node)
Visit a BSP tree node node having a non-null sub-hyperplane.
|
void |
EdgesBuilder.visitLeafNode(BSPTree<Sphere2D> node)
Visit a leaf BSP tree node node having a null sub-hyperplane.
|
void |
PropertiesComputer.visitLeafNode(BSPTree<Sphere2D> node)
Visit a leaf BSP tree node node having a null sub-hyperplane.
|
BSPTreeVisitor.Order |
EdgesBuilder.visitOrder(BSPTree<Sphere2D> node)
Determine the visit order for this node.
|
BSPTreeVisitor.Order |
PropertiesComputer.visitOrder(BSPTree<Sphere2D> node)
Determine the visit order for this node.
|
Constructor and Description |
---|
EdgesBuilder(BSPTree<Sphere2D> root,
double tolerance)
Simple constructor.
|
SphericalPolygonsSet(BSPTree<Sphere2D> tree,
double tolerance)
Build a polygons set from a BSP tree.
|
SphericalPolygonsSet(java.util.Collection<SubHyperplane<Sphere2D>> boundary,
double tolerance)
Build a polygons set from a Boundary REPresentation (B-rep).
|
SubCircle(Hyperplane<Sphere2D> hyperplane,
Region<Sphere1D> remainingRegion)
Simple constructor.
|