Uses of Class
org.apache.commons.geometry.euclidean.oned.Vector1D
-
Packages that use Vector1D Package Description org.apache.commons.geometry.euclidean This is the top-level package for Euclidean geometry components.org.apache.commons.geometry.euclidean.oned This package provides basic 1D geometry components.org.apache.commons.geometry.euclidean.threed.line This package provides classes and utilities for lines in 3D Euclidean space.org.apache.commons.geometry.euclidean.twod 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 Vector1D Modifier and Type Class Description class
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 Vector1D Modifier and Type Method Description protected <L extends Embedding<V,Vector1D>>
VAbstractNSphere. firstIntersection(L line, java.util.function.ToDoubleBiFunction<L,V> abscissaFn, java.util.function.ToDoubleBiFunction<L,V> distanceFn)
Internal method to compute the first intersection between a line and this instance.protected <L extends Embedding<V,Vector1D>>
java.util.List<V>AbstractNSphere. intersections(L line, java.util.function.ToDoubleBiFunction<L,V> abscissaFn, java.util.function.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.oned Modifier and Type Class Description static class
Vector1D.Unit
Represent unit vectors.Fields in org.apache.commons.geometry.euclidean.oned declared as Vector1D Modifier and Type Field Description static Vector1D
Vector1D. NaN
A vector with all coordinates set to NaN.static Vector1D
Vector1D. NEGATIVE_INFINITY
A vector with all coordinates set to negative infinity.private Vector1D
OrientedPoint. point
Hyperplane location as a point.static Vector1D
Vector1D. POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.static Vector1D
Vector1D. ZERO
Zero vector (coordinates: 0).Fields in org.apache.commons.geometry.euclidean.oned with type parameters of type Vector1D Modifier and Type Field Description static java.util.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 Vector1D Modifier and Type Method Description Vector1D
Vector1D. add(double factor, Vector1D v)
Add a scaled vector to the instance.Vector1D
Vector1D. add(Vector1D v)
Add a vector to the instance.Vector1D
AffineTransformMatrix1D. apply(Vector1D vec)
Vector1D
AffineTransformMatrix1D. applyVector(Vector1D vec)
Apply this transform to the given vector, ignoring translations.Vector1D
OrientedPoint.OrientedPointConvexSubset. closest(Vector1D point)
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
Vector1D.Sum. get()
Vector1D
Interval. getCentroid()
Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.Vector1D
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.Vector1D
OrientedPoint. getPoint()
Get the location of the hyperplane as a point.Vector1D
Vector1D. getZero()
Get the zero (null) vector of the space.Vector1D
Vector1D. lerp(Vector1D p, double t)
Get a vector constructed by linearly interpolating between this vector and the given vector.Vector1D
Vector1D. multiply(double a)
Multiply the instance by a scalar.Vector1D
Vector1D. negate()
Get the negation of the instance.Vector1D
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
Vector1D. parse(java.lang.String str)
Parses the given string and returns a new vector instance.Vector1D
Interval. project(Vector1D pt)
Project a point onto the boundary of the region.Vector1D
OrientedPoint. project(Vector1D pt)
Project a point onto this instance.Vector1D
RegionBSPTree1D. project(Vector1D pt)
Project a point onto the boundary of the region.Vector1D
Vector1D. subtract(double factor, Vector1D v)
Subtract a scaled vector from the instance.Vector1D
Vector1D. subtract(Vector1D v)
Subtract a vector from the instance.Vector1D
Vector1D. transform(java.util.function.UnaryOperator<Vector1D> fn)
Convenience method to apply a function to this vector.Vector1D
Vector1D. vectorTo(Vector1D v)
Return the vector representing the displacement from this vector to the given vector.Vector1D
Vector1D.Unit. withNorm(double mag)
Returns a vector with the same direction but with the given norm.Vector1D
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 Vector1D Modifier and Type Method Description protected AbstractRegionBSPTree.RegionSizeProperties<Vector1D>
RegionBSPTree1D. computeRegionSizeProperties()
Compute the size-related properties of the region.AbstractRegionBSPTree.RegionSizeProperties<Vector1D>
RegionBSPTree1D.RegionSizePropertiesVisitor. getRegionSizeProperties()
Get the computed properties for the region.HyperplaneConvexSubset<Vector1D>
OrientedPoint. span()
Return aHyperplaneConvexSubset
spanning this entire hyperplane.Methods in org.apache.commons.geometry.euclidean.oned with parameters of type Vector1D Modifier and Type Method Description Vector1D
Vector1D. add(double factor, Vector1D v)
Add a scaled vector to the instance.Vector1D
Vector1D. add(Vector1D v)
Add a vector to the instance.Vector1D.Sum
Vector1D.Sum. add(Vector1D vec)
Add a vector to this instance.Vector1D.Sum
Vector1D.Sum. addScaled(double scale, Vector1D vec)
Add a scaled vector to this instance.double
Vector1D. angle(Vector1D v)
Compute the angular separation between two vectors in radians.Vector1D
AffineTransformMatrix1D. apply(Vector1D vec)
Vector1D.Unit
AffineTransformMatrix1D. applyDirection(Vector1D vec)
Apply this transform to the given vector, ignoring translations and normalizing the result.Vector1D
AffineTransformMatrix1D. applyVector(Vector1D vec)
Apply this transform to the given vector, ignoring translations.RegionLocation
Interval. classify(Vector1D pt)
Classify the given point with respect to the region.HyperplaneLocation
OrientedPoint. classify(Vector1D pt)
Classify a point with respect to this hyperplane.RegionLocation
OrientedPoint.OrientedPointConvexSubset. classify(Vector1D point)
Classify a point with respect to the subset region.Vector1D
OrientedPoint.OrientedPointConvexSubset. closest(Vector1D point)
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.Unit
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
Vector1D. distance(Vector1D v)
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
Vector1D. dot(Vector1D v)
Compute the dot-product of the instance and another vector.boolean
Vector1D. eq(Vector1D vec, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Return true if the current instance and given vector are considered equal as evaluated by the given precision context.static Vector1D.Unit
Vector1D.Unit. from(Vector1D v)
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.Vector1D
Vector1D. lerp(Vector1D p, double t)
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
Vector1D.Sum. of(Vector1D initial)
Construct a new instance with an initial value set to the argument.static Vector1D.Sum
Vector1D.Sum. of(Vector1D first, Vector1D... more)
Construct a new instance from multiple values.double
OrientedPoint. offset(Vector1D pt)
Get the offset (oriented distance) of a point with respect to this instance.Vector1D
Interval. project(Vector1D pt)
Project a point onto the boundary of the region.Vector1D
OrientedPoint. project(Vector1D pt)
Project a point onto this instance.Vector1D
RegionBSPTree1D. project(Vector1D pt)
Project a point onto the boundary of the region.AffineTransformMatrix1D
AffineTransformMatrix1D. scale(Vector1D scaleFactor)
Get a new transform containing the result of applying a scale operation logically after the transformation represented by the current instance.Vector1D
Vector1D. subtract(double factor, Vector1D v)
Subtract a scaled vector from the instance.Vector1D
Vector1D. subtract(Vector1D v)
Subtract a vector from the instance.AffineTransformMatrix1D
AffineTransformMatrix1D. translate(Vector1D translation)
Get a new transform containing the result of applying a translation logically after the transformation represented by the current instance.Vector1D
Vector1D. vectorTo(Vector1D v)
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 Vector1D Modifier and Type Method Description static AffineTransformMatrix1D
AffineTransformMatrix1D. from(java.util.function.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.Split<Interval>
Interval. split(Hyperplane<Vector1D> splitter)
Split this instance with the given hyperplane.Split<OrientedPoint.OrientedPointConvexSubset>
OrientedPoint.OrientedPointConvexSubset. split(Hyperplane<Vector1D> splitter)
Split this instance with the given hyperplane.Split<RegionBSPTree1D>
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.Interval
Interval. transform(Transform<Vector1D> transform)
Return a new instance transformed by the argument.OrientedPoint.OrientedPointConvexSubset
OrientedPoint.OrientedPointConvexSubset. transform(Transform<Vector1D> transform)
Return a new hyperplane subset resulting from the application of the given transform.OrientedPoint
OrientedPoint. transform(Transform<Vector1D> transform)
Transform this instance using the givenTransform
.Vector1D
Vector1D. transform(java.util.function.UnaryOperator<Vector1D> fn)
Convenience method to apply a function to this vector.Constructors in org.apache.commons.geometry.euclidean.oned with parameters of type Vector1D Constructor Description BoundaryProjector1D(Vector1D point)
Simple constructor.OrientedPoint(Vector1D point, boolean positiveFacing, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Simple constructor.Sum(Vector1D initial)
Construct a new instance with the given initial value.Constructor parameters in org.apache.commons.geometry.euclidean.oned with type arguments of type Vector1D Constructor Description RegionNode1D(AbstractBSPTree<Vector1D,RegionBSPTree1D.RegionNode1D> tree)
Simple constructor. -
Uses of Vector1D in org.apache.commons.geometry.euclidean.threed.line
Methods in org.apache.commons.geometry.euclidean.threed.line that return Vector1D Modifier and Type Method Description Vector1D
Line3D. toSubspace(Vector3D pt)
Transform a space point into a subspace point.Vector1D
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 Vector1D Modifier and Type Method Description abstract HyperplaneBoundedRegion<Vector1D>
LineSubset3D. getSubspaceRegion()
Get the subspace region for the instance.Methods in org.apache.commons.geometry.euclidean.threed.line with parameters of type Vector1D Modifier and Type Method Description static LineConvexSubset3D
Lines3D. subsetFromInterval(Line3D line, Vector1D a, Vector1D b)
Create a line convex subset from a line and a 1D interval on the line.Vector3D
Line3D. toSpace(Vector1D pt)
Transform a subspace point into a space point.Vector3D
LineSubset3D. toSpace(Vector1D pt)
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 Vector1D Modifier and Type Method Description Vector1D
Line. toSubspace(Vector2D point)
Transform a space point into a subspace point.Vector1D
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 Vector1D Modifier and Type Method Description abstract HyperplaneBoundedRegion<Vector1D>
LineSubset. getSubspaceRegion()
Get the embedded subspace region.Methods in org.apache.commons.geometry.euclidean.twod with parameters of type Vector1D Modifier and Type Method Description Vector2D
Line. toSpace(Vector1D point)
Transform a subspace point into a space point.Vector2D
LineSubset. toSpace(Vector1D pt)
Transform a subspace point into a space point.
-