Uses of Class
org.apache.commons.math3.geometry.euclidean.twod.Vector2D
Packages that use Vector2D
Package
Description
This package provides basic 3D geometry components.
This package provides basic 2D geometry components.
This package provides algorithms to generate the convex hull
for a set of points in an two-dimensional euclidean space.
This package provides basic geometry components on the 1-sphere.
-
Uses of Vector2D in org.apache.commons.math3.geometry.euclidean.threed
Methods in org.apache.commons.math3.geometry.euclidean.threed that return Vector2DModifier and TypeMethodDescriptionVector2D[][]OutlineExtractor.getOutline(PolyhedronsSet polyhedronsSet) Extract the outline of a polyhedrons set.Plane.toSubSpace(Point<Euclidean3D> point) Transform a 3D space point into an in-plane point.Plane.toSubSpace(Vector<Euclidean3D> vector) Transform a space point into a sub-space point.Methods in org.apache.commons.math3.geometry.euclidean.threed with parameters of type Vector2DModifier and TypeMethodDescriptionPlane.getPointAt(Vector2D inPlane, double offset) Get one point from the 3D-space.private booleanOutlineExtractor.pointIsBetween(Vector2D[] loop, int n, int i) Check if a point is geometrically between its neighbor in an array. -
Uses of Vector2D in org.apache.commons.math3.geometry.euclidean.twod
Fields in org.apache.commons.math3.geometry.euclidean.twod declared as Vector2DModifier and TypeFieldDescriptionprivate final Vector2DSegment.endEnd point of the segment.private final Vector2DPolygonsSet.Vertex.locationVertex location.private Vector2D[]NestedLoops.loopBoundary loop.static final Vector2DVector2D.NaNA vector with all coordinates set to NaN.static final Vector2DVector2D.NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.static final Vector2DVector2D.POSITIVE_INFINITYA vector with all coordinates set to positive infinity.private final Vector2DSegment.startStart point of the segment.private Vector2D[][]PolygonsSet.verticesVertices organized as boundary loops.static final Vector2DVector2D.ZEROOrigin (coordinates: 0, 0).Methods in org.apache.commons.math3.geometry.euclidean.twod that return Vector2DModifier and TypeMethodDescriptionVector2D.add(double factor, Vector<Euclidean2D> v) Add a scaled vector to the instance.Vector2D.add(Vector<Euclidean2D> v) Add a vector to the instance.Line.LineTransform.apply(Point<Euclidean2D> point) Transform a point of a space.Segment.getEnd()Get the end point of the segment.PolygonsSet.Vertex.getLocation()Get Vertex location.Line.getPointAt(Vector1D abscissa, double offset) Get one point from the plane.Segment.getStart()Get the start point of the segment.Vector2D[][]PolygonsSet.getVertices()Get the vertices of the polygon.Vector2D.getZero()Get the null vector of the vectorial space or origin point of the affine space.Line.intersection(Line other) Get the intersection point of the instance and another line.SubLine.intersection(SubLine subLine, boolean includeEndPoints) Get the intersection of the instance and another sub-line.Vector2D.negate()Get the opposite of the instance.Vector2D.normalize()Get a normalized vector aligned with the instance.Parses a string to produce aVectorobject.Vector2DFormat.parse(String source, ParsePosition pos) Parses a string to produce aVectorobject.Vector2D.scalarMultiply(double a) Multiply the instance by a scalar.Vector2D.subtract(double factor, Vector<Euclidean2D> v) Subtract a scaled vector from the instance.Vector2D.subtract(Vector<Euclidean2D> p) Subtract a vector from the instance.Line.toSpace(Point<Euclidean1D> point) Transform a sub-space point into a space point.Line.toSpace(Vector<Euclidean1D> vector) Transform a sub-space point into a space point.Methods in org.apache.commons.math3.geometry.euclidean.twod that return types with arguments of type Vector2DModifier and TypeMethodDescriptionDiskGenerator.ballOnSupport(List<Vector2D> support) Create a ball whose boundary lies on prescribed support points.Methods in org.apache.commons.math3.geometry.euclidean.twod with parameters of type Vector2DModifier and TypeMethodDescriptionvoidAdd a loop in a tree.static doubleCompute the angular separation between two vectors.private static IntervalsSetSubLine.buildIntervalSet(Vector2D start, Vector2D end, double tolerance) Build an interval set from two points.booleanCheck if the line contains a point.doubleVector2D.crossProduct(Vector2D p1, Vector2D p2) Compute the cross-product of the instance and the given points.doubleCompute the distance between the instance and a point.doubleCalculates the shortest distance from a point to this line segment.static doubleCompute the distance between two vectors according to the L2 norm.static doubleVector2D.distanceInf(Vector2D p1, Vector2D p2) Compute the distance between two vectors according to the L∞ norm.static doubleVector2D.distanceSq(Vector2D p1, Vector2D p2) Compute the square of the distance between two vectors.voidReset the instance as if built from a line and an angle.voidReset the instance as if built from two points.private BSPTree<Euclidean2D> PolygonsSet.SegmentsBuilder.selectClosest(Vector2D point, Iterable<BSPTree<Euclidean2D>> candidates) Select the node whose cut sub-hyperplane is closest to specified point.voidLine.translateToPoint(Vector2D p) Translate the line to force it passing by a point.private static BSPTree<Euclidean2D> PolygonsSet.verticesToTree(double hyperplaneThickness, Vector2D... vertices) Build the BSP tree of a polygons set from a simple list of vertices.Method parameters in org.apache.commons.math3.geometry.euclidean.twod with type arguments of type Vector2DModifier and TypeMethodDescriptionDiskGenerator.ballOnSupport(List<Vector2D> support) Create a ball whose boundary lies on prescribed support points.Constructors in org.apache.commons.math3.geometry.euclidean.twod with parameters of type Vector2DModifierConstructorDescription(package private)ConnectableSegment(Vector2D start, Vector2D end, Line line, BSPTree<Euclidean2D> node, BSPTree<Euclidean2D> startNode, BSPTree<Euclidean2D> endNode) Build a segment.Deprecated.Build a line from a point and an angle.Deprecated.as of 3.3, replaced withLine(Vector2D, Vector2D, double)Build a line from two points.privateNestedLoops(Vector2D[] loop, double tolerance) Constructor.PolygonsSet(double hyperplaneThickness, Vector2D... vertices) Build a polygon from a simple list of vertices.Build a segment.Deprecated.as of 3.3, replaced withSubLine(Vector2D, Vector2D, double)Create a sub-line from two endpoints.Multiplicative constructor Build a vector from another one and a scale factor.Linear constructor Build a vector from two other ones and corresponding scale factors.Linear constructor Build a vector from three other ones and corresponding scale factors.Vector2D(double a1, Vector2D u1, double a2, Vector2D u2, double a3, Vector2D u3, double a4, Vector2D u4) Linear constructor Build a vector from four other ones and corresponding scale factors.(package private)Build a non-processed vertex not owned by any node yet. -
Uses of Vector2D in org.apache.commons.math3.geometry.euclidean.twod.hull
Fields in org.apache.commons.math3.geometry.euclidean.twod.hull declared as Vector2DModifier and TypeFieldDescriptionprivate final Vector2D[]ConvexHull2D.verticesVertices of the hull.Methods in org.apache.commons.math3.geometry.euclidean.twod.hull that return Vector2DModifier and TypeMethodDescriptionVector2D[]ConvexHull2D.getVertices()Get the vertices of the convex hull.Methods in org.apache.commons.math3.geometry.euclidean.twod.hull that return types with arguments of type Vector2DModifier and TypeMethodDescriptionAklToussaintHeuristic.buildQuadrilateral(Vector2D... points) Build the convex quadrilateral with the found corner points (with min/max x/y coordinates).protected abstract Collection<Vector2D> AbstractConvexHullGenerator2D.findHullVertices(Collection<Vector2D> points) Find the convex hull vertices from the set of input points.MonotoneChain.findHullVertices(Collection<Vector2D> points) Find the convex hull vertices from the set of input points.static Collection<Vector2D> AklToussaintHeuristic.reducePoints(Collection<Vector2D> 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.Methods in org.apache.commons.math3.geometry.euclidean.twod.hull with parameters of type Vector2DModifier and TypeMethodDescriptionAklToussaintHeuristic.buildQuadrilateral(Vector2D... points) Build the convex quadrilateral with the found corner points (with min/max x/y coordinates).private static booleanAklToussaintHeuristic.insideQuadrilateral(Vector2D point, List<Vector2D> quadrilateralPoints) Checks if the given point is located within the convex quadrilateral.private booleanChecks whether the given hull vertices form a convex hull.private voidMonotoneChain.updateHull(Vector2D point, List<Vector2D> hull) Update the partial hull with the current point.Method parameters in org.apache.commons.math3.geometry.euclidean.twod.hull with type arguments of type Vector2DModifier and TypeMethodDescriptionprotected abstract Collection<Vector2D> AbstractConvexHullGenerator2D.findHullVertices(Collection<Vector2D> points) Find the convex hull vertices from the set of input points.MonotoneChain.findHullVertices(Collection<Vector2D> points) Find the convex hull vertices from the set of input points.AbstractConvexHullGenerator2D.generate(Collection<Vector2D> points) Builds the convex hull from the set of input points.ConvexHullGenerator2D.generate(Collection<Vector2D> points) Builds the convex hull from the set of input points.private static booleanAklToussaintHeuristic.insideQuadrilateral(Vector2D point, List<Vector2D> quadrilateralPoints) Checks if the given point is located within the convex quadrilateral.static Collection<Vector2D> AklToussaintHeuristic.reducePoints(Collection<Vector2D> 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.private voidMonotoneChain.updateHull(Vector2D point, List<Vector2D> hull) Update the partial hull with the current point.Constructors in org.apache.commons.math3.geometry.euclidean.twod.hull with parameters of type Vector2DModifierConstructorDescriptionConvexHull2D(Vector2D[] vertices, double tolerance) Simple constructor. -
Uses of Vector2D in org.apache.commons.math3.geometry.spherical.oned
Fields in org.apache.commons.math3.geometry.spherical.oned declared as Vector2DModifier and TypeFieldDescriptionprivate final Vector2DS1Point.vectorCorresponding 2D normalized vector.Methods in org.apache.commons.math3.geometry.spherical.oned that return Vector2DModifier and TypeMethodDescriptionS1Point.getVector()Get the corresponding normalized vector in the 2D euclidean space.Constructors in org.apache.commons.math3.geometry.spherical.oned with parameters of type Vector2D
Line(Vector2D, double, double)