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 TypeClassDescriptionclass
AbstractLinecastPoint<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.onedFields in org.apache.commons.geometry.euclidean.oned declared as Vector1DModifier and TypeFieldDescriptionstatic final Vector1D
Vector1D.NaN
A vector with all coordinates set to NaN.static final Vector1D
Vector1D.NEGATIVE_INFINITY
A vector with all coordinates set to negative infinity.private final Vector1D
OrientedPoint.point
Hyperplane location as a point.static final Vector1D
Vector1D.POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.static final Vector1D
Vector1D.ZERO
Zero 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_ORDER
Comparator 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 Vector1D
RegionBSPTree1D.BoundaryProjector1D.disambiguateClosestPoint
(Vector1D target, Vector1D a, Vector1D b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when 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 Vector1D
Vector1D.of
(double x) Returns a vector with the given coordinate value.static Vector1D
Parses 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 aHyperplaneConvexSubset
spanning 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.double
Compute 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 OrientedPoint
OrientedPoints.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 OrientedPoint
OrientedPoints.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 AffineTransformMatrix1D
AffineTransformMatrix1D.createScale
(Vector1D factor) Get a transform representing a scale operation.static AffineTransformMatrix1D
AffineTransformMatrix1D.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 Vector1D
RegionBSPTree1D.BoundaryProjector1D.disambiguateClosestPoint
(Vector1D target, Vector1D a, Vector1D b) Method used to determine which of pointsa
andb
should be considered as the "closest" point totarget
when the points are exactly equidistant.double
Compute the distance between the instance and another vector.double
Vector1D.distanceSq
(Vector1D v) Compute the square of the distance between the instance and another vector.double
Compute the dot-product of the instance and another vector.boolean
Return true if the current instance and given vector are considered equal as evaluated by the given precision context.static Vector1D.Unit
Create a normalized vector.static OrientedPoint
OrientedPoints.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 OrientedPoint
OrientedPoints.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 Interval
Interval.of
(Vector1D a, Vector1D b, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision) Create a new interval from the given points.static Vector1D.Sum
Construct a new instance with an initial value set to the argument.static Vector1D.Sum
Construct a new instance from multiple values.double
Get 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 AffineTransformMatrix1D
AffineTransformMatrix1D.from
(UnaryOperator<Vector1D> fn) Construct a new transform representing the given function.boolean
OrientedPoint.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 boolean
RegionBSPTree1D.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 Vector1DModifierConstructorDescriptionprivate
Simple constructor. -
Uses of Vector1D in org.apache.commons.geometry.euclidean.threed.line
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 LineConvexSubset3D
Lines3D.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
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