Uses of Class
org.hipparchus.geometry.euclidean.twod.Vector2D
-
Packages that use Vector2D Package Description org.hipparchus.geometry.euclidean.threed This package provides basic 3D geometry components.org.hipparchus.geometry.euclidean.twod This package provides basic 2D geometry components.org.hipparchus.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.hipparchus.geometry.spherical.oned This package provides basic geometry components on the 1-sphere.org.hipparchus.samples Various examples.org.hipparchus.samples.geometry Geometry examples. -
-
Uses of Vector2D in org.hipparchus.geometry.euclidean.threed
Methods in org.hipparchus.geometry.euclidean.threed that return Vector2D Modifier and Type Method Description Vector2D[][]OutlineExtractor. getOutline(PolyhedronsSet polyhedronsSet)Extract the outline of a polyhedrons set.Vector2DPlane. toSubSpace(Point<Euclidean3D> point)Transform a 3D space point into an in-plane point.Vector2DPlane. toSubSpace(Vector<Euclidean3D> vector)Transform a space point into a sub-space point.Methods in org.hipparchus.geometry.euclidean.threed with parameters of type Vector2D Modifier and Type Method Description Vector3DPlane. getPointAt(Vector2D inPlane, double offset)Get one point from the 3D-space. -
Uses of Vector2D in org.hipparchus.geometry.euclidean.twod
Fields in org.hipparchus.geometry.euclidean.twod declared as Vector2D Modifier and Type Field Description static Vector2DVector2D. NaNA vector with all coordinates set to NaN.static Vector2DVector2D. NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.static Vector2DVector2D. POSITIVE_INFINITYA vector with all coordinates set to positive infinity.static Vector2DVector2D. ZEROOrigin (coordinates: 0, 0).Methods in org.hipparchus.geometry.euclidean.twod that return Vector2D Modifier and Type Method Description Vector2DVector2D. add(double factor, Vector<Euclidean2D> v)Add a scaled vector to the instance.Vector2DVector2D. add(Vector<Euclidean2D> v)Add a vector to the instance.Vector2DSegment. getEnd()Get the end point of the segment.Vector2DLine. getPointAt(Vector1D abscissa, double offset)Get one point from the plane.Vector2DSegment. getStart()Get the start point of the segment.Vector2D[][]PolygonsSet. getVertices()Get the vertices of the polygon.Vector2DVector2D. getZero()Get the null vector of the vectorial space or origin point of the affine space.Vector2DLine. intersection(Line other)Get the intersection point of the instance and another line.Vector2DSubLine. intersection(SubLine subLine, boolean includeEndPoints)Get the intersection of the instance and another sub-line.Vector2DVector2D. negate()Get the opposite of the instance.Vector2DVector2D. normalize()Get a normalized vector aligned with the instance.Vector2DVector2DFormat. parse(String source)Parses a string to produce aVectorobject.Vector2DVector2DFormat. parse(String source, ParsePosition pos)Parses a string to produce aVectorobject.Vector2DVector2D. scalarMultiply(double a)Multiply the instance by a scalar.Vector2DVector2D. subtract(double factor, Vector<Euclidean2D> v)Subtract a scaled vector from the instance.Vector2DVector2D. subtract(Vector<Euclidean2D> p)Subtract a vector from the instance.Vector2DLine. toSpace(Point<Euclidean1D> point)Transform a sub-space point into a space point.Vector2DLine. toSpace(Vector<Euclidean1D> vector)Transform a sub-space point into a space point.Methods in org.hipparchus.geometry.euclidean.twod that return types with arguments of type Vector2D Modifier and Type Method Description EnclosingBall<Euclidean2D,Vector2D>DiskGenerator. ballOnSupport(List<Vector2D> support)Create a ball whose boundary lies on prescribed support points.Methods in org.hipparchus.geometry.euclidean.twod with parameters of type Vector2D Modifier and Type Method Description static doubleVector2D. angle(Vector2D v1, Vector2D v2)Compute the angular separation between two vectors.booleanLine. contains(Vector2D p)Check if the line contains a point.doubleVector2D. crossProduct(Vector2D p1, Vector2D p2)Compute the cross-product of the instance and the given points.doubleLine. distance(Vector2D p)Compute the distance between the instance and a point.doubleSegment. distance(Vector2D p)Calculates the shortest distance from a point to this line segment.static doubleVector2D. distance(Vector2D p1, Vector2D p2)Compute 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.static doubleVector2D. orientation(Vector2D p, Vector2D q, Vector2D r)Compute the orientation of a triplet of points.voidLine. reset(Vector2D p, double alpha)Reset the instance as if built from a line and an angle.voidLine. reset(Vector2D p1, Vector2D p2)Reset the instance as if built from two points.voidLine. translateToPoint(Vector2D p)Translate the line to force it passing by a point.Method parameters in org.hipparchus.geometry.euclidean.twod with type arguments of type Vector2D Modifier and Type Method Description EnclosingBall<Euclidean2D,Vector2D>DiskGenerator. ballOnSupport(List<Vector2D> support)Create a ball whose boundary lies on prescribed support points.Constructors in org.hipparchus.geometry.euclidean.twod with parameters of type Vector2D Constructor Description Line(Vector2D p, double angle, double tolerance)Build a line from a point and an angle.Line(Vector2D p1, Vector2D p2, double tolerance)Build a line from two points.PolygonsSet(double hyperplaneThickness, Vector2D... vertices)Build a polygon from a simple list of vertices.Segment(Vector2D start, Vector2D end, double tolerance)Build a segment.Segment(Vector2D start, Vector2D end, Line line)Build a segment.SubLine(Vector2D start, Vector2D end, double tolerance)Create a sub-line from two endpoints.Vector2D(double a, Vector2D u)Multiplicative constructor Build a vector from another one and a scale factor.Vector2D(double a1, Vector2D u1, double a2, Vector2D u2)Linear constructor Build a vector from two other ones and corresponding scale factors.Vector2D(double a1, Vector2D u1, double a2, Vector2D u2, double a3, Vector2D u3)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. -
Uses of Vector2D in org.hipparchus.geometry.euclidean.twod.hull
Methods in org.hipparchus.geometry.euclidean.twod.hull that return Vector2D Modifier and Type Method Description Vector2D[]ConvexHull2D. getVertices()Get the vertices of the convex hull.Methods in org.hipparchus.geometry.euclidean.twod.hull that return types with arguments of type Vector2D Modifier and Type Method Description Collection<Vector2D>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.Method parameters in org.hipparchus.geometry.euclidean.twod.hull with type arguments of type Vector2D Modifier and Type Method Description Collection<Vector2D>MonotoneChain. findHullVertices(Collection<Vector2D> points)Find the convex hull vertices from the set of input points.ConvexHull2DConvexHullGenerator2D. generate(Collection<Vector2D> points)Builds the convex hull 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.Constructors in org.hipparchus.geometry.euclidean.twod.hull with parameters of type Vector2D Constructor Description ConvexHull2D(Vector2D[] vertices, double tolerance)Simple constructor. -
Uses of Vector2D in org.hipparchus.geometry.spherical.oned
Methods in org.hipparchus.geometry.spherical.oned that return Vector2D Modifier and Type Method Description Vector2DS1Point. getVector()Get the corresponding normalized vector in the 2D euclidean space. -
Uses of Vector2D in org.hipparchus.samples
Methods in org.hipparchus.samples that return Vector2D Modifier and Type Method Description static Vector2DClusterAlgorithmComparison. generateNoiseVector(RandomGenerator randomGenerator, double noise)Methods in org.hipparchus.samples that return types with arguments of type Vector2D Modifier and Type Method Description static List<Vector2D>ClusterAlgorithmComparison. makeBlobs(int samples, int centers, double clusterStd, double min, double max, boolean shuffle, RandomGenerator random)static List<Vector2D>LowDiscrepancyGeneratorComparison. makeCircle(int samples, RandomVectorGenerator generator)static List<Vector2D>ClusterAlgorithmComparison. makeCircles(int samples, boolean shuffle, double noise, double factor, RandomGenerator random)static List<Vector2D>ClusterAlgorithmComparison. makeMoons(int samples, boolean shuffle, double noise, RandomGenerator random)static List<Vector2D>ClusterAlgorithmComparison. makeRandom(int samples)static List<Vector2D>LowDiscrepancyGeneratorComparison. makeRandom(int samples, RandomVectorGenerator generator)static List<Vector2D>LowDiscrepancyGeneratorComparison. normalize(List<Vector2D> input)Method parameters in org.hipparchus.samples with type arguments of type Vector2D Modifier and Type Method Description static List<DoublePoint>ClusterAlgorithmComparison. normalize(List<Vector2D> input, double minX, double maxX, double minY, double maxY)static List<Vector2D>LowDiscrepancyGeneratorComparison. normalize(List<Vector2D> input)Constructor parameters in org.hipparchus.samples with type arguments of type Vector2D Constructor Description Plot(List<Vector2D> points) -
Uses of Vector2D in org.hipparchus.samples.geometry
Methods in org.hipparchus.samples.geometry that return types with arguments of type Vector2D Modifier and Type Method Description static List<Vector2D>GeometryExample. createCircle(int samples)static List<Vector2D>GeometryExample. createCross()static List<Vector2D>GeometryExample. createRandomPoints(int size)
-