Uses of Class
org.apache.commons.geometry.euclidean.oned.Vector1D
Packages that use Vector1D
Package
Description
This is the top-level package for Euclidean geometry components.
This package provides basic 1D geometry components.
This package provides classes and utilities for lines in 3D Euclidean space.
This package provides basic 2D geometry components.
-
Uses of Vector1D in org.apache.commons.geometry.euclidean
Classes in org.apache.commons.geometry.euclidean with type parameters of type Vector1DModifier and TypeClassDescriptionclassAbstractLinecastPoint<P extends EuclideanVector<P>, U extends P, L extends Embedding<P,Vector1D>> Base class for intersections discovered during linecast operations.Methods in org.apache.commons.geometry.euclidean with type parameters of type Vector1DModifier and TypeMethodDescriptionAbstractNSphere.firstIntersection(L line, ToDoubleBiFunction<L, V> abscissaFn, ToDoubleBiFunction<L, V> distanceFn) Internal method to compute the first intersection between a line and this instance.AbstractNSphere.intersections(L line, ToDoubleBiFunction<L, V> abscissaFn, ToDoubleBiFunction<L, V> distanceFn) Internal method to compute the intersections between a line and this instance. -
Uses of Vector1D in org.apache.commons.geometry.euclidean.oned
Subclasses of Vector1D in org.apache.commons.geometry.euclidean.onedSubclasses with type arguments of type Vector1D in org.apache.commons.geometry.euclidean.onedModifier and TypeClassDescriptionfinal classClass using a matrix to represent affine transformations in 1 dimensional Euclidean space.final classThis class represents a 1D oriented hyperplane.final classBinary space partitioning (BSP) tree representing a region in one dimensional Euclidean space.private static final classClass used to project points onto the region boundary.static final classBSP tree node for one dimensional Euclidean space.classThis class represents vectors and points in one-dimensional Euclidean space.static final classClass used to create high-accuracy sums of vectors.Classes in org.apache.commons.geometry.euclidean.oned that implement interfaces with type arguments of type Vector1DModifier and TypeClassDescriptionfinal classClass representing an interval in one dimension.private static classHyperplaneConvexSubsetimplementation for Euclidean 1D space.Fields in org.apache.commons.geometry.euclidean.oned declared as Vector1DModifier and TypeFieldDescriptionstatic final Vector1DVector1D.NaNA vector with all coordinates set to NaN.static final Vector1DVector1D.NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.private final Vector1DOrientedPoint.pointHyperplane location as a point.static final Vector1DVector1D.POSITIVE_INFINITYA vector with all coordinates set to positive infinity.static final Vector1DVector1D.ZEROZero vector (coordinates: 0).Fields in org.apache.commons.geometry.euclidean.oned with type parameters of type Vector1DModifier and TypeFieldDescriptionstatic final Comparator<Vector1D> Vector1D.COORDINATE_ASCENDING_ORDERComparator that sorts vectors in component-wise ascending order.Methods in org.apache.commons.geometry.euclidean.oned that return Vector1DModifier and TypeMethodDescriptionAdd a scaled vector to the instance.Add a vector to the instance.AffineTransformMatrix1D.applyVector(Vector1D vec) Apply this transform to the given vector, ignoring translations.Return the closest point to the argument that is contained in the subset (ie, not classified asoutside), or null if no such point exists.protected Vector1DRegionBSPTree1D.BoundaryProjector1D.disambiguateClosestPoint(Vector1D target, Vector1D a, Vector1D b) Method used to determine which of pointsaandbshould be considered as the "closest" point totargetwhen the points are exactly equidistant.Vector1D.Sum.get()Interval.getCentroid()Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.OrientedPoint.OrientedPointConvexSubset.getCentroid()Get the centroid, or geometric center, of the hyperplane subset or null if no centroid exists or one exists but is not unique.OrientedPoint.getPoint()Get the location of the hyperplane as a point.Vector1D.getZero()Get the zero (null) vector of the space.Get a vector constructed by linearly interpolating between this vector and the given vector.Vector1D.multiply(double a) Multiply the instance by a scalar.Vector1D.negate()Get the negation of the instance.Vector1D.Unit.negate()Get the negation of the instance.static Vector1DVector1D.of(double x) Returns a vector with the given coordinate value.static Vector1DParses the given string and returns a new vector instance.Project a point onto the boundary of the region.Project a point onto this instance.Project a point onto the boundary of the region.Subtract a scaled vector from the instance.Subtract a vector from the instance.Vector1D.transform(UnaryOperator<Vector1D> fn) Convenience method to apply a function to this vector.Return the vector representing the displacement from this vector to the given vector.Vector1D.Unit.withNorm(double mag) Returns a vector with the same direction but with the given norm.Vector1D.withNorm(double magnitude) Returns a vector with the same direction but with the given norm.Methods in org.apache.commons.geometry.euclidean.oned that return types with arguments of type Vector1DModifier and TypeMethodDescriptionRegionBSPTree1D.computeRegionSizeProperties()Compute the size-related properties of the region.RegionBSPTree1D.RegionSizePropertiesVisitor.getRegionSizeProperties()Get the computed properties for the region.OrientedPoint.span()Return aHyperplaneConvexSubsetspanning this entire hyperplane.Methods in org.apache.commons.geometry.euclidean.oned with parameters of type Vector1DModifier and TypeMethodDescriptionAdd 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.AffineTransformMatrix1D.applyDirection(Vector1D vec) Apply this transform to the given vector, ignoring translations and normalizing the result.AffineTransformMatrix1D.applyVector(Vector1D vec) Apply this transform to the given vector, ignoring translations.Classify the given point with respect to the region.Classify a point with respect to this hyperplane.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.static OrientedPointOrientedPoints.createNegativeFacing(Vector1D point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that it is facing negative infinity.static OrientedPointOrientedPoints.createPositiveFacing(Vector1D point, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance at the given point, oriented so that it is facing positive infinity.static AffineTransformMatrix1DAffineTransformMatrix1D.createScale(Vector1D factor) Get a transform representing a scale operation.static AffineTransformMatrix1DAffineTransformMatrix1D.createTranslation(Vector1D translation) Get a transform representing the given translation.Vector1D.directionTo(Vector1D v) Return the unit vector representing the direction of displacement from this vector to the given vector.protected Vector1DRegionBSPTree1D.BoundaryProjector1D.disambiguateClosestPoint(Vector1D target, Vector1D a, Vector1D 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 another vector.doubleVector1D.distanceSq(Vector1D 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 Vector1D.UnitCreate a normalized vector.static OrientedPointOrientedPoints.fromPointAndDirection(Vector1D point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given point and boolean direction value.static OrientedPointOrientedPoints.fromPointAndDirection(Vector1D point, Vector1D direction, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new instance from the given point and direction.Get a vector constructed by linearly interpolating between this vector and the given vector.static IntervalInterval.of(Vector1D a, Vector1D b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new interval from the given points.static Vector1D.SumConstruct a new instance with an initial value set to the argument.static Vector1D.SumConstruct a new instance from multiple values.doubleGet the offset (oriented distance) of a point with respect to this instance.Project a point onto the boundary of the region.Project a point onto this instance.Project a point onto the boundary of the region.Get a new transform containing the result of applying a scale operation logically after the transformation represented by the current instance.Subtract a scaled vector from the instance.Subtract a vector from the instance.Get a new transform containing the result of applying a translation logically after the transformation represented by the current instance.Return the vector representing the displacement from this vector to the given vector.Method parameters in org.apache.commons.geometry.euclidean.oned with type arguments of type Vector1DModifier and TypeMethodDescriptionstatic AffineTransformMatrix1DAffineTransformMatrix1D.from(UnaryOperator<Vector1D> fn) Construct a new transform representing the given function.booleanOrientedPoint.similarOrientation(Hyperplane<Vector1D> other) Return true if this instance has a similar orientation to the given hyperplane, meaning that they point in generally the same direction.Interval.split(Hyperplane<Vector1D> splitter) Split this instance with the given hyperplane.OrientedPoint.OrientedPointConvexSubset.split(Hyperplane<Vector1D> splitter) Split this instance with the given hyperplane.RegionBSPTree1D.split(Hyperplane<Vector1D> splitter) Split this instance with the given hyperplane.protected booleanRegionBSPTree1D.swapsInsideOutside(Transform<Vector1D> transform) Returns true if the given transform would result in a swapping of the interior and exterior of the region if applied.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.Vector1D.transform(UnaryOperator<Vector1D> fn) Convenience method to apply a function to this vector.Constructors in org.apache.commons.geometry.euclidean.oned with parameters of type Vector1DModifierConstructorDescription(package private)BoundaryProjector1D(Vector1D point) Simple constructor.(package private)OrientedPoint(Vector1D point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Simple constructor.(package private)Construct a new instance with the given initial value.Constructor parameters in org.apache.commons.geometry.euclidean.oned with type arguments of type Vector1DModifierConstructorDescriptionprivateSimple constructor. -
Uses of Vector1D in org.apache.commons.geometry.euclidean.threed.line
Classes in org.apache.commons.geometry.euclidean.threed.line that implement interfaces with type arguments of type Vector1DModifier and TypeClassDescriptionfinal classClass representing a line in 3D space.classClass representing a subset of a line in 3D Euclidean space.Methods in org.apache.commons.geometry.euclidean.threed.line that return Vector1DModifier and TypeMethodDescriptionLine3D.toSubspace(Vector3D pt) Transform a space point into a subspace point.LineSubset3D.toSubspace(Vector3D pt) Transform a space point into a subspace point.Methods in org.apache.commons.geometry.euclidean.threed.line that return types with arguments of type Vector1DModifier and TypeMethodDescriptionabstract HyperplaneBoundedRegion<Vector1D> LineSubset3D.getSubspaceRegion()Get the subspace region for the instance.Methods in org.apache.commons.geometry.euclidean.threed.line with parameters of type Vector1DModifier and TypeMethodDescriptionstatic LineConvexSubset3DLines3D.subsetFromInterval(Line3D line, Vector1D a, Vector1D b) Create a line convex subset from a line and a 1D interval on the line.Transform a subspace point into a space point.Transform a subspace point into a space point. -
Uses of Vector1D in org.apache.commons.geometry.euclidean.twod
Classes in org.apache.commons.geometry.euclidean.twod that implement interfaces with type arguments of type Vector1DModifier and TypeClassDescriptionfinal classThis class represents an oriented line in the 2D plane.classClass representing a subset of points on a line in 2D Euclidean space.Methods in org.apache.commons.geometry.euclidean.twod that return Vector1DModifier and TypeMethodDescriptionLine.toSubspace(Vector2D point) Transform a space point into a subspace point.LineSubset.toSubspace(Vector2D pt) Transform a space point into a subspace point.Methods in org.apache.commons.geometry.euclidean.twod that return types with arguments of type Vector1DModifier and TypeMethodDescriptionabstract HyperplaneBoundedRegion<Vector1D> LineSubset.getSubspaceRegion()Get the embedded subspace region.Methods in org.apache.commons.geometry.euclidean.twod with parameters of type Vector1D