| Package | Description |
|---|---|
| org.apache.commons.math4.geometry.euclidean.threed |
This package provides basic 3D geometry components.
|
| org.apache.commons.math4.geometry.euclidean.twod |
This package provides basic 2D geometry components.
|
| org.apache.commons.math4.geometry.euclidean.twod.hull |
This package provides algorithms to generate the convex hull
for a set of points in an two-dimensional euclidean space.
|
| org.apache.commons.math4.geometry.spherical.oned |
This package provides basic geometry components on the 1-sphere.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian2D[][] |
OutlineExtractor.getOutline(PolyhedronsSet polyhedronsSet) |
Extract the outline of a polyhedrons set.
|
Cartesian2D |
Plane.toSubSpace(Cartesian3D point) |
Transform a 3D space point into an in-plane point.
|
Cartesian2D |
Plane.toSubSpace(Point<Euclidean3D> point) |
Transform a 3D space point into an in-plane point.
|
Cartesian2D |
Plane.toSubSpace(Vector<Euclidean3D> vector) |
Transform a space vector into a sub-space vector.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian3D |
Plane.getPointAt(Cartesian2D inPlane,
double offset) |
Get one point from the 3D-space.
|
Cartesian3D |
Plane.toSpace(Cartesian2D point) |
Transform an in-plane point into a 3D space point.
|
| Modifier and Type | Field | Description |
|---|---|---|
static Cartesian2D |
Cartesian2D.NaN |
A vector with all coordinates set to NaN.
|
static Cartesian2D |
Cartesian2D.NEGATIVE_INFINITY |
A vector with all coordinates set to negative infinity.
|
static Cartesian2D |
Cartesian2D.POSITIVE_INFINITY |
A vector with all coordinates set to positive infinity.
|
static Cartesian2D |
Cartesian2D.ZERO |
Origin (coordinates: 0, 0).
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian2D |
Cartesian2D.add(double factor,
Vector<Euclidean2D> v) |
Add a scaled vector to the instance.
|
Cartesian2D |
Cartesian2D.add(Vector<Euclidean2D> v) |
Add a vector to the instance.
|
Cartesian2D |
Segment.getEnd() |
Get the end point of the segment.
|
Cartesian2D |
Line.getPointAt(Cartesian1D abscissa,
double offset) |
Get one point from the plane.
|
Cartesian2D |
Segment.getStart() |
Get the start point of the segment.
|
Cartesian2D[][] |
PolygonsSet.getVertices() |
Get the vertices of the polygon.
|
Cartesian2D |
Cartesian2D.getZero() |
Get the null vector of the vectorial space or origin point of the affine space.
|
Cartesian2D |
Line.intersection(Line other) |
Get the intersection point of the instance and another line.
|
Cartesian2D |
SubLine.intersection(SubLine subLine,
boolean includeEndPoints) |
Get the intersection of the instance and another sub-line.
|
Cartesian2D |
Cartesian2D.negate() |
Get the opposite of the instance.
|
Cartesian2D |
Cartesian2D.normalize() |
Get a normalized vector aligned with the instance.
|
Cartesian2D |
Cartesian2D.scalarMultiply(double a) |
Multiply the instance by a scalar.
|
Cartesian2D |
Cartesian2D.subtract(double factor,
Vector<Euclidean2D> v) |
Subtract a scaled vector from the instance.
|
Cartesian2D |
Cartesian2D.subtract(Vector<Euclidean2D> p) |
Subtract a vector from the instance.
|
Cartesian2D |
Line.toSpace(Cartesian1D cartesian) |
Transform a sub-space point into a space point.
|
Cartesian2D |
Line.toSpace(Point<Euclidean1D> point) |
Transform a sub-space point into a space point.
|
Cartesian2D |
Line.toSpace(Vector<Euclidean1D> vector) |
Transform a sub-space point into a space point.
|
| Modifier and Type | Method | Description |
|---|---|---|
EnclosingBall<Euclidean2D,Cartesian2D> |
DiskGenerator.ballOnSupport(List<Cartesian2D> support) |
Create a ball whose boundary lies on prescribed support points.
|
| Modifier and Type | Method | Description |
|---|---|---|
static double |
Cartesian2D.angle(Cartesian2D v1,
Cartesian2D v2) |
Compute the angular separation between two vectors.
|
boolean |
Line.contains(Cartesian2D p) |
Check if the line contains a point.
|
double |
Cartesian2D.crossProduct(Cartesian2D p1,
Cartesian2D p2) |
Compute the cross-product of the instance and the given vector.
|
double |
Cartesian2D.distance(Cartesian2D c) |
Compute the distance between the instance and other coordinates.
|
static double |
Cartesian2D.distance(Cartesian2D p1,
Cartesian2D p2) |
Compute the distance between two points according to the L2 norm.
|
double |
Line.distance(Cartesian2D p) |
Compute the distance between the instance and a point.
|
double |
Segment.distance(Cartesian2D p) |
Calculates the shortest distance from a point to this line segment.
|
static double |
Cartesian2D.distanceInf(Cartesian2D p1,
Cartesian2D p2) |
Compute the distance between two points according to the L∞ norm.
|
static double |
Cartesian2D.distanceSq(Cartesian2D p1,
Cartesian2D p2) |
Compute the square of the distance between two points.
|
double |
Line.getOffset(Cartesian2D cartesian) |
Get the offset (oriented distance) of a point.
|
void |
Line.reset(Cartesian2D p,
double alpha) |
Reset the instance as if built from a line and an angle.
|
void |
Line.reset(Cartesian2D p1,
Cartesian2D p2) |
Reset the instance as if built from two points.
|
Cartesian1D |
Line.toSubSpace(Cartesian2D cartesian) |
Transform a space point into a sub-space point.
|
void |
Line.translateToPoint(Cartesian2D p) |
Translate the line to force it passing by a point.
|
| Modifier and Type | Method | Description |
|---|---|---|
EnclosingBall<Euclidean2D,Cartesian2D> |
DiskGenerator.ballOnSupport(List<Cartesian2D> support) |
Create a ball whose boundary lies on prescribed support points.
|
| Constructor | Description |
|---|---|
Cartesian2D(double a,
Cartesian2D u) |
Multiplicative constructor
Build a vector from another one and a scale factor.
|
Cartesian2D(double a1,
Cartesian2D u1,
double a2,
Cartesian2D u2) |
Linear constructor
Build a vector from two other ones and corresponding scale factors.
|
Cartesian2D(double a1,
Cartesian2D u1,
double a2,
Cartesian2D u2,
double a3,
Cartesian2D u3) |
Linear constructor
Build a vector from three other ones and corresponding scale factors.
|
Cartesian2D(double a1,
Cartesian2D u1,
double a2,
Cartesian2D u2,
double a3,
Cartesian2D u3,
double a4,
Cartesian2D u4) |
Linear constructor
Build a vector from four other ones and corresponding scale factors.
|
Line(Cartesian2D p,
double angle,
double tolerance) |
Build a line from a point and an angle.
|
Line(Cartesian2D p1,
Cartesian2D p2,
double tolerance) |
Build a line from two points.
|
PolygonsSet(double hyperplaneThickness,
Cartesian2D... vertices) |
Build a polygon from a simple list of vertices.
|
Segment(Cartesian2D start,
Cartesian2D end,
Line line) |
Build a segment.
|
SubLine(Cartesian2D start,
Cartesian2D end,
double tolerance) |
Create a sub-line from two endpoints.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian2D[] |
ConvexHull2D.getVertices() |
Get the vertices of the convex hull.
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection<Cartesian2D> |
MonotoneChain.findHullVertices(Collection<Cartesian2D> points) |
Find the convex hull vertices from the set of input points.
|
static Collection<Cartesian2D> |
AklToussaintHeuristic.reducePoints(Collection<Cartesian2D> points) |
Returns a point set that is reduced by all points for which it is safe to assume
that they are not part of the convex hull.
|
| Modifier and Type | Method | Description |
|---|---|---|
Collection<Cartesian2D> |
MonotoneChain.findHullVertices(Collection<Cartesian2D> points) |
Find the convex hull vertices from the set of input points.
|
ConvexHull2D |
ConvexHullGenerator2D.generate(Collection<Cartesian2D> points) |
Builds the convex hull from the set of input points.
|
static Collection<Cartesian2D> |
AklToussaintHeuristic.reducePoints(Collection<Cartesian2D> points) |
Returns a point set that is reduced by all points for which it is safe to assume
that they are not part of the convex hull.
|
| Constructor | Description |
|---|---|
ConvexHull2D(Cartesian2D[] vertices,
double tolerance) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
Cartesian2D |
S1Point.getVector() |
Get the corresponding normalized vector in the 2D euclidean space.
|
Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.