Uses of Class
org.apache.commons.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 classes for working with connected sequences of
line segments and other line subsets.
This package provides components related to rotations in 2 dimensional
Euclidean space.
This package provides utilities for constructing basic 2D shapes.
This package provides basic geometry components on the 1-sphere.
-
Uses of Vector2D in org.apache.commons.geometry.euclidean.threed
Methods in org.apache.commons.geometry.euclidean.threed that return Vector2DModifier and TypeMethodDescriptionAbstractEmbeddedRegionPlaneSubset.toSubspace(Vector3D pt) Transform a space point into a subspace point.EmbeddingPlane.toSubspace(Vector3D point) Transform a 3D space point into an in-plane point.Methods in org.apache.commons.geometry.euclidean.threed that return types with arguments of type Vector2DModifier and TypeMethodDescriptionPlaneSubset.Embedded.getSubspaceRegion()Get the embedded subspace region.Methods in org.apache.commons.geometry.euclidean.threed with parameters of type Vector2DModifier and TypeMethodDescriptionGet one point from the 3D-space.Transform a subspace point into a space point.Transform an in-plane point into a 3D space point.Method parameters in org.apache.commons.geometry.euclidean.threed with type arguments of type Vector2DModifier and TypeMethodDescriptionstatic List<PlaneConvexSubset> Planes.extrudeVertexLoop(List<Vector2D> vertices, EmbeddingPlane plane, Vector3D extrusionVector, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Get the boundaries of a 3D region created by extruding a polygon defined by a list of vertices.(package private) static <T extends PlaneSubset>
Split<T> Planes.subspaceSplit(Plane splitter, T subset, BiFunction<? super EmbeddingPlane, ? super HyperplaneBoundedRegion<Vector2D>, T> factory) Generic split method that uses performs the split using the subspace region of the plane subset. -
Uses of Vector2D in org.apache.commons.geometry.euclidean.twod
Subclasses of Vector2D in org.apache.commons.geometry.euclidean.twodFields in org.apache.commons.geometry.euclidean.twod declared as Vector2DModifier and TypeFieldDescriptionprivate final Vector2DReverseRay.endPointThe end point of the reverse ray.private final Vector2DSegment.endPointEnd point for the segment.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 Vector2DRay.startPointThe start point for the ray.private final Vector2DSegment.startPointStart point for the segment.static final Vector2DVector2D.ZEROZero vector (coordinates: 0, 0).Fields in org.apache.commons.geometry.euclidean.twod with type parameters of type Vector2DModifier and TypeFieldDescriptionstatic final Comparator<Vector2D> Vector2D.COORDINATE_ASCENDING_ORDERComparator that sorts vectors in component-wise ascending order.Methods in org.apache.commons.geometry.euclidean.twod with type parameters of type Vector2DModifier and TypeMethodDescriptionprivate <T extends Vector2D>
TVector2D.getComponent(Vector2D base, boolean reject, DoubleFunction2N<T> factory) Returns a component of the current instance relative to the given base vector.Methods in org.apache.commons.geometry.euclidean.twod that return Vector2DModifier and TypeMethodDescriptionAdd a scaled vector to the instance.Add a vector to the instance.Apply this transform to the given point, returning the result as a new instance.AffineTransformMatrix2D.applyVector(Vector2D vec) Apply this transform to the given vector, ignoring translations.static Vector2DCompute the centroid of the given points.static Vector2DCompute the centroid of the given points.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.private static Vector2DVector2D.computeCentroid(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing the centroid of a set of points.private static Vector2DVector2D.computeMax(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a max vector.private static Vector2DVector2D.computeMin(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a min vector.protected Vector2DRegionBSPTree2D.BoundaryProjector2D.disambiguateClosestPoint(Vector2D target, Vector2D a, Vector2D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.Vector2D.Sum.get()ConvexArea.getCentroid()Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.EmbeddedTreeLineSubset.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.LineSpanningSubset.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.Ray.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.ReverseRay.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.Segment.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.Ray.getDirection()Get the direction of the ray.abstract Vector2DLineConvexSubset.getEndPoint()Get the end point for the subset.LineSpanningSubset.getEndPoint()Get the end point for the subset.Ray.getEndPoint()Get the end point for the subset.ReverseRay.getEndPoint()Get the end point for the subset.Segment.getEndPoint()Get the end point for the subset.Line.getOffsetDirection()Get the offset direction of the line.Line.getOrigin()Get the line origin point.abstract Vector2DLineConvexSubset.getStartPoint()Get the start point for the subset.LineSpanningSubset.getStartPoint()Get the start point for the subset.Ray.getStartPoint()ReverseRay.getStartPoint()Get the start point for the subset.Segment.getStartPoint()Get the start point for the subset.Vector2D.getZero()Get the zero (null) vector of the space.Line.intersection(Line other) Get the intersection point of the instance and another line.LineSubset.intersection(Line inputLine) Get the unique intersection of this subset with the given line.LineSubset.intersection(LineSubset subset) Get the unique intersection of this instance with the given line subset.Get a vector constructed by linearly interpolating between this vector and the given vector.static Vector2DReturn a vector containing the maximum component values from all input vectors.static Vector2DReturn a vector containing the maximum component values from all input vectors.static Vector2DReturn a vector containing the minimum component values from all input vectors.static Vector2DReturn a vector containing the minimum component values from all input vectors.Vector2D.multiply(double a) Multiply the instance by a scalar.Vector2D.negate()Get the negation of the instance.static Vector2DVector2D.of(double[] v) Creates a vector from the coordinates in the given 2-element array.static Vector2DVector2D.of(double x, double y) Returns a vector with the given coordinate values.static Vector2DParses the given string and returns a new vector instance.Line.pointAt(double abscissa, double offset) Get one point from the plane, relative to the coordinate system of the line.Project a point onto this instance.Project a point onto the boundary of the region.Get the projection of the instance onto the given base vector.Get the rejection of the instance from the given base vector.Subtract a scaled vector from the instance.Subtract a vector from the instance.PolarCoordinates.toCartesian()Convert this set of polar coordinates to Cartesian coordinates.static Vector2DPolarCoordinates.toCartesian(double radius, double azimuth) Convert the given polar coordinates to Cartesian form.Line.toSpace(double abscissa) Convert the given abscissa value (1D location on the line) into a 2D point.Transform a subspace point into a space point.Transform a subspace point into a space point.Vector2D.transform(UnaryOperator<Vector2D> fn) Convenience method to apply a function to this vector.Return the vector representing the displacement from this vector to the given vector.Vector2D.Unit.withNorm(double mag) Returns a vector with the same direction but with the given norm.Vector2D.withNorm(double magnitude) Returns a vector with the same direction but with the given norm.Methods in org.apache.commons.geometry.euclidean.twod that return types with arguments of type Vector2DModifier and TypeMethodDescriptionRegionBSPTree2D.computeRegionSizeProperties()Compute the size-related properties of the region.ConvexArea.getVertices()Get the vertices for the area in a counter-clockwise order.Methods in org.apache.commons.geometry.euclidean.twod with parameters of type Vector2DModifier and TypeMethodDescriptiondoubleGet the abscissa of the given point on the line.Add a point to this instance.Add a scaled vector to the instance.Add a vector to the instance.Add a vector to this instance.Add a scaled vector to this instance.doubleCompute the angular separation between two vectors in radians.Apply this transform to the given point, returning the result as a new instance.AffineTransformMatrix2D.applyDirection(Vector2D vec) Apply this transform to the given vector, ignoring translations and normalizing the result.AffineTransformMatrix2D.applyVector(Vector2D vec) Apply this transform to the given vector, ignoring translations.private <T> TAffineTransformMatrix2D.applyVector(Vector2D vec, DoubleFunction2N<T> factory) Multiplies the given vector by the 2x2 linear transformation matrix contained in the upper-right corner of the affine transformation matrix.static Vector2DCompute the centroid of the given points.Classify a point with respect to the subset region.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.private static Vector2DVector2D.computeCentroid(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing the centroid of a set of points.private LinecastPoint2DRegionBSPTree2D.LinecastVisitor.computeLinecastPoint(Vector2D pt, RegionBSPTree2D.RegionNode2D node) Compute the linecast point for the given intersection point and tree node, returning null if the point does not actually lie on the region boundary.private static Vector2DVector2D.computeMax(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a max vector.private static Vector2DVector2D.computeMin(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a min vector.booleanReturn true if the given point is strictly within or on the boundary of the bounding box.booleanBounds2D.contains(Vector2D pt, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return true if the given point is within or on the boundary of the bounding box, using the given precision context for floating point comparisons.booleanCheck if the line contains a point.static AffineTransformMatrix2DAffineTransformMatrix2D.createRotation(Vector2D center, double angle) Create a transform representing a counterclockwise rotation ofangleradians around the given center point.static AffineTransformMatrix2DAffineTransformMatrix2D.createRotation(Vector2D center, Rotation2D rotation) Create a transform representing a counterclockwise rotation around the given center point.static AffineTransformMatrix2DAffineTransformMatrix2D.createScale(Vector2D factors) Create a transform representing a scale operation.static AffineTransformMatrix2DAffineTransformMatrix2D.createTranslation(Vector2D translation) Create a transform representing the given translation.Vector2D.directionTo(Vector2D v) Return the unit vector representing the direction of displacement from this vector to the given vector.protected Vector2DRegionBSPTree2D.BoundaryProjector2D.disambiguateClosestPoint(Vector2D target, Vector2D a, Vector2D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.doubleCompute the distance between the instance and a point.doubleCompute the distance between the instance and another vector.doubleVector2D.distanceSq(Vector2D v) Compute the square of the distance between the instance and another vector.doubleCompute the dot-product of the instance and another vector.booleanReturn true if the current instance and given vector are considered equal as evaluated by the given precision context.static Bounds2DConstruct a new instance from the given points.static Vector2D.UnitCreate a normalized vector.static PolarCoordinatesPolarCoordinates.fromCartesian(Vector2D vec) Convert the given Cartesian coordinates to polar form.static AffineTransformMatrix2DAffineTransformMatrix2D.fromColumnVectors(Vector2D u, Vector2D v) Get a new transform create from the given column vectors.static AffineTransformMatrix2DAffineTransformMatrix2D.fromColumnVectors(Vector2D u, Vector2D v, Vector2D t) Get a new transform created from the given column vectors.static LineLines.fromPointAndAngle(Vector2D pt, double angle, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from a point lying on the line and an angle relative to the abscissa (x) axis.static LineLines.fromPointAndDirection(Vector2D pt, Vector2D dir, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from a point and direction.static LineLines.fromPoints(Vector2D p1, Vector2D p2, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a line from two points lying on the line.private <T extends Vector2D>
TVector2D.getComponent(Vector2D base, boolean reject, DoubleFunction2N<T> factory) Returns a component of the current instance relative to the given base vector.private voidRegionBSPTree2D.PartitionedRegionBuilder2D.insertAxisAlignedGridRecursive(Vector2D min, Vector2D max, int level, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Recursively insert axis-aligned grid partitions.RegionBSPTree2D.PartitionedRegionBuilder2D.insertAxisAlignedPartitions(Vector2D center, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Insert two axis aligned lines intersecting at the given point as partitions.Get a vector constructed by linearly interpolating between this vector and the given vector.static Vector2DReturn a vector containing the maximum component values from all input vectors.static Vector2DReturn a vector containing the minimum component values from all input vectors.static Vector2D.SumConstruct a new instance with an initial value set to the argument.static Vector2D.SumConstruct a new instance from multiple values.doubleGet the offset (oriented distance) of a point with respect to this instance.Vector2D.orthogonal(Vector2D dir) Get a unit vector orthogonal to the current vector and pointing in the direction ofdir.Project a point onto this instance.Project a point onto the boundary of the region.Get the projection of the instance onto the given base vector.Create a new ray instance that starts at the projection of the given point and continues in the direction of the line to infinity.static RayLines.rayFromPoint(Line line, Vector2D startPoint) Construct a ray starting at the given point and continuing to infinity in the direction ofline.static RayLines.rayFromPointAndDirection(Vector2D startPoint, Vector2D direction, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a ray from a start point and a direction.Get the rejection of the instance from the given base vector.static ReverseRayLines.reverseRayFromPoint(Line line, Vector2D endPoint) Construct a reverse ray starting at infinity and continuing in the direction oflineto the given end point.static ReverseRayLines.reverseRayFromPointAndDirection(Vector2D endPoint, Vector2D lineDirection, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a reverse ray from an end point and a line direction.Line.reverseRayTo(Vector2D endPoint) Create a new convex line subset that starts at infinity and continues along the line up to the projection of the given end point.Apply a counterclockwise rotation about the given center point to the current instance, returning the result as a new transform.AffineTransformMatrix2D.rotate(Vector2D center, Rotation2D rotation) Apply a counterclockwise rotation about the given center point to the current instance, returning the result as a new transform.Apply a scale operation to the current instance, returning the result as a new transform.Create a new line segment from two points.static SegmentLines.segmentFromPoints(Line line, Vector2D a, Vector2D b) Construct a new line segment from a line and a pair of points.static SegmentLines.segmentFromPoints(Vector2D startPoint, Vector2D endPoint, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a new line segment from two points.doubleVector2D.signedArea(Vector2D v) Compute the signed area of the parallelogram with sides formed by this instance and the given vector.(package private) abstract Split<LineConvexSubset> LineConvexSubset.splitOnIntersection(Line splitter, Vector2D intersection) Split this instance using the given splitter line and intersection point.(package private) Split<LineConvexSubset> LineSpanningSubset.splitOnIntersection(Line splitter, Vector2D intersection) Split this instance using the given splitter line and intersection point.(package private) Split<LineConvexSubset> Ray.splitOnIntersection(Line splitter, Vector2D intersection) Split this instance using the given splitter line and intersection point.protected Split<LineConvexSubset> ReverseRay.splitOnIntersection(Line splitter, Vector2D intersection) Split this instance using the given splitter line and intersection point.(package private) Split<LineConvexSubset> Segment.splitOnIntersection(Line splitter, Vector2D intersection) Split this instance using the given splitter line and intersection point.Subtract a scaled vector from the instance.Subtract a vector from the instance.Line.toSubspace(Vector2D point) Transform a space point into a subspace point.LineSubset.toSubspace(Vector2D pt) Transform a space point into a subspace point.Apply a translation to the current instance, returning the result as a new transform.Return the vector representing the displacement from this vector to the given vector.Method parameters in org.apache.commons.geometry.euclidean.twod with type arguments of type Vector2DModifier and TypeMethodDescriptionAdd a collection of points to this instance.static Vector2DCompute the centroid of the given points.private static Vector2DVector2D.computeCentroid(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing the centroid of a set of points.private static Vector2DVector2D.computeMax(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a max vector.private static Vector2DVector2D.computeMin(Vector2D first, Iterator<? extends Vector2D> more) Internal method for computing a min vector.static ConvexAreaConvexArea.convexPolygonFromVertices(Collection<Vector2D> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a convex polygon from the given vertices.static AffineTransformMatrix2DAffineTransformMatrix2D.from(UnaryOperator<Vector2D> fn) Construct a new transform representing the given function.static Bounds2DConstruct a new instance from the given points.static Vector2DReturn a vector containing the maximum component values from all input vectors.static Vector2DReturn a vector containing the minimum component values from all input vectors.booleanLine.similarOrientation(Hyperplane<Vector2D> other) Return true if this instance has a similar orientation to the given hyperplane, meaning that they point in generally the same direction.ConvexArea.split(Hyperplane<Vector2D> splitter) Split this instance with the given hyperplane.EmbeddedTreeLineSubset.split(Hyperplane<Vector2D> splitter) Split this instance with the given hyperplane.LineConvexSubset.split(Hyperplane<Vector2D> splitter) Split this instance with the given hyperplane.RegionBSPTree2D.split(Hyperplane<Vector2D> splitter) Split this instance with the given hyperplane.Line.subspaceTransform(Transform<Vector2D> transform) Get an object containing the current line transformed by the argument along with a 1D transform that can be applied to subspace points.Return a new instance transformed by the argument.Return a new hyperplane subset resulting from the application of the given transform.Transform this instance using the givenTransform.abstract LineConvexSubsetReturn a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Return a new hyperplane subset resulting from the application of the given transform.Vector2D.transform(UnaryOperator<Vector2D> fn) Convenience method to apply a function to this vector.ConvexArea.trim(HyperplaneConvexSubset<Vector2D> convexSubset) Trim the given hyperplane subset to the portion contained inside this instance.Constructors in org.apache.commons.geometry.euclidean.twod with parameters of type Vector2DModifierConstructorDescription(package private)BoundaryProjector2D(Vector2D point) Simple constructor.privateSimple constructor.LinecastPoint2D(Vector2D point, Vector2D normal, Line line) Construct a new instance from its components.(package private)Construct a ray from a line and a start point.(package private)ReverseRay(Line line, Vector2D endPoint) Construct a new instance from the given line and end point.(package private)Construct a new instance from a line and two points on the line.(package private)Construct a new instance with the given initial value.Constructor parameters in org.apache.commons.geometry.euclidean.twod with type arguments of type Vector2DModifierConstructorDescriptionprivateSimple constructor. -
Uses of Vector2D in org.apache.commons.geometry.euclidean.twod.path
Fields in org.apache.commons.geometry.euclidean.twod.path declared as Vector2DModifier and TypeFieldDescriptionprivate Vector2DLinePath.Builder.endVertexThe current vertex at the end of the path.private final Vector2DAbstractLinePathConnector.ConnectableLineSubset.startLine subset start point.private Vector2DLinePath.Builder.startVertexThe current vertex at the start of the path.Methods in org.apache.commons.geometry.euclidean.twod.path that return Vector2DModifier and TypeMethodDescriptionprivate Vector2DLinePath.getEndVertex()Get the end vertex for the path or null if the path is empty or has an infinite end line subset.private Vector2DLinePath.getStartVertex()Get the start vertex for the path or null if the path is empty or has an infinite start line subset.Methods in org.apache.commons.geometry.euclidean.twod.path that return types with arguments of type Vector2DModifier and TypeMethodDescriptionLinePath.getVertexSequence()Get the sequence of vertices defined by the path.Methods in org.apache.commons.geometry.euclidean.twod.path with parameters of type Vector2DModifier and TypeMethodDescriptionAdd a vertex to the end of this path.LinePath.Builder.appendVertices(Vector2D... vertices) Convenience method for appending multiple vertices to the path at once.Add a vertex to the front of this path.LinePath.Builder.prependVertices(Vector2D... vertices) Convenience method for prepending multiple vertices to the path in a single method call.Method parameters in org.apache.commons.geometry.euclidean.twod.path with type arguments of type Vector2DModifier and TypeMethodDescriptionLinePath.Builder.appendVertices(Collection<? extends Vector2D> vertices) Convenience method for appending a collection of vertices to the path in a single method call.static LinePathLinePath.fromVertexLoop(Collection<Vector2D> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a new path from the given vertices.static LinePathLinePath.fromVertices(Collection<Vector2D> vertices, boolean close, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a new path from the given vertices.static LinePathLinePath.fromVertices(Collection<Vector2D> vertices, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Build a new path from the given vertices.LinePath.Builder.prependVertices(Collection<Vector2D> vertices) Convenience method for prepending a collection of vertices to the path in a single method call.Transform this instance with the argument, returning the result in a new instance.Constructors in org.apache.commons.geometry.euclidean.twod.path with parameters of type Vector2DModifierConstructorDescriptionConnectableLineSubset(Vector2D start) Create a new instance with the given start point.privateConnectableLineSubset(Vector2D start, LineConvexSubset subset) Create a new instance with the given start point and line subset. -
Uses of Vector2D in org.apache.commons.geometry.euclidean.twod.rotation
Methods in org.apache.commons.geometry.euclidean.twod.rotation that return Vector2DModifier and TypeMethodDescriptionRotation2D.applyVector(Vector2D vec) Apply this transform to the given vector, ignoring translations.Methods in org.apache.commons.geometry.euclidean.twod.rotation with parameters of type Vector2DModifier and TypeMethodDescriptionRotation2D.applyVector(Vector2D vec) Apply this transform to the given vector, ignoring translations.static Rotation2DRotation2D.createVectorRotation(Vector2D u, Vector2D v) Create a rotation instance that rotates the vectoruto point in the direction of vectorv. -
Uses of Vector2D in org.apache.commons.geometry.euclidean.twod.shape
Fields in org.apache.commons.geometry.euclidean.twod.shape declared as Vector2DModifier and TypeFieldDescriptionprivate Vector2DParallelogram.Builder.positionAmount to translate the parallelogram.private Vector2DParallelogram.Builder.scaleAmount to scale the parallelogram.Fields in org.apache.commons.geometry.euclidean.twod.shape with type parameters of type Vector2DModifier and TypeFieldDescriptionParallelogram.UNIT_SQUARE_VERTICESVertices defining a square with sides of length 1 centered on the origin.Methods in org.apache.commons.geometry.euclidean.twod.shape that return Vector2DModifier and TypeMethodDescriptionCircle.firstIntersection(Line line) Get the first intersection point between the given line and this circle, or null if no such point exists.private Vector2DCircle.CircleApproximationBuilder.pointAt(int idx) Get the boundary vertex point at the given index.Project a point onto the boundary of the region.Methods in org.apache.commons.geometry.euclidean.twod.shape that return types with arguments of type Vector2DModifier and TypeMethodDescriptionCircle.intersections(Line line) Get the intersections of the given line with this circle.Methods in org.apache.commons.geometry.euclidean.twod.shape with parameters of type Vector2DModifier and TypeMethodDescriptionstatic ParallelogramParallelogram.axisAligned(Vector2D a, Vector2D b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Return a new instance representing an axis-aligned rectangle.static CircleCircle.from(Vector2D center, double radius, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Construct a circle from a center point and radius.Project a point onto the boundary of the region.Parallelogram.Builder.setPosition(Vector2D pos) Set the center position of the created parallelogram.Set the scaling for the created parallelogram.Parallelogram.Builder.setXDirection(Vector2D xDirection) Set the rotation of the created parallelogram such that the relative x-axis of the shape points in the given direction.Parallelogram.Builder.setYDirection(Vector2D yDirection) Set the rotation of the created parallelogram such that the relative y-axis of the shape points in the given direction.Method parameters in org.apache.commons.geometry.euclidean.twod.shape with type arguments of type Vector2DModifier and TypeMethodDescriptionstatic ParallelogramParallelogram.fromTransformedUnitSquare(Transform<Vector2D> transform, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance by transforming a unit square centered at the origin.Constructors in org.apache.commons.geometry.euclidean.twod.shape with parameters of type Vector2D -
Uses of Vector2D in org.apache.commons.geometry.spherical.oned
Methods in org.apache.commons.geometry.spherical.oned that return Vector2DModifier and TypeMethodDescriptionPoint1S.getVector()Get the normalized vector corresponding to this azimuth angle in 2D Euclidean space.Methods in org.apache.commons.geometry.spherical.oned with parameters of type Vector2D