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 classAbstractLinecastPoint<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 classVector1D.UnitRepresent unit vectors.Fields in org.apache.commons.geometry.euclidean.oned declared as Vector1D Modifier and Type Field Description static Vector1DVector1D. NaNA vector with all coordinates set to NaN.static Vector1DVector1D. NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.private Vector1DOrientedPoint. pointHyperplane location as a point.static Vector1DVector1D. POSITIVE_INFINITYA vector with all coordinates set to positive infinity.static Vector1DVector1D. ZEROZero 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_ORDERComparator that sorts vectors in component-wise ascending order.Methods in org.apache.commons.geometry.euclidean.oned that return Vector1D Modifier and Type Method Description Vector1DVector1D. add(double factor, Vector1D v)Add a scaled vector to the instance.Vector1DVector1D. add(Vector1D v)Add a vector to the instance.Vector1DAffineTransformMatrix1D. apply(Vector1D vec)Vector1DAffineTransformMatrix1D. applyVector(Vector1D vec)Apply this transform to the given vector, ignoring translations.Vector1DOrientedPoint.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 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.Vector1DVector1D.Sum. get()Vector1DInterval. getCentroid()Get the centroid, or geometric center, of the region or null if no centroid exists or one exists but is not unique.Vector1DOrientedPoint.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.Vector1DOrientedPoint. getPoint()Get the location of the hyperplane as a point.Vector1DVector1D. getZero()Get the zero (null) vector of the space.Vector1DVector1D. lerp(Vector1D p, double t)Get a vector constructed by linearly interpolating between this vector and the given vector.Vector1DVector1D. multiply(double a)Multiply the instance by a scalar.Vector1DVector1D. negate()Get the negation of the instance.Vector1DVector1D.Unit. negate()Get the negation of the instance.static Vector1DVector1D. of(double x)Returns a vector with the given coordinate value.static Vector1DVector1D. parse(java.lang.String str)Parses the given string and returns a new vector instance.Vector1DInterval. project(Vector1D pt)Project a point onto the boundary of the region.Vector1DOrientedPoint. project(Vector1D pt)Project a point onto this instance.Vector1DRegionBSPTree1D. project(Vector1D pt)Project a point onto the boundary of the region.Vector1DVector1D. subtract(double factor, Vector1D v)Subtract a scaled vector from the instance.Vector1DVector1D. subtract(Vector1D v)Subtract a vector from the instance.Vector1DVector1D. transform(java.util.function.UnaryOperator<Vector1D> fn)Convenience method to apply a function to this vector.Vector1DVector1D. vectorTo(Vector1D v)Return the vector representing the displacement from this vector to the given vector.Vector1DVector1D.Unit. withNorm(double mag)Returns a vector with the same direction but with the given norm.Vector1DVector1D. 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 aHyperplaneConvexSubsetspanning this entire hyperplane.Methods in org.apache.commons.geometry.euclidean.oned with parameters of type Vector1D Modifier and Type Method Description Vector1DVector1D. add(double factor, Vector1D v)Add a scaled vector to the instance.Vector1DVector1D. add(Vector1D v)Add a vector to the instance.Vector1D.SumVector1D.Sum. add(Vector1D vec)Add a vector to this instance.Vector1D.SumVector1D.Sum. addScaled(double scale, Vector1D vec)Add a scaled vector to this instance.doubleVector1D. angle(Vector1D v)Compute the angular separation between two vectors in radians.Vector1DAffineTransformMatrix1D. apply(Vector1D vec)Vector1D.UnitAffineTransformMatrix1D. applyDirection(Vector1D vec)Apply this transform to the given vector, ignoring translations and normalizing the result.Vector1DAffineTransformMatrix1D. applyVector(Vector1D vec)Apply this transform to the given vector, ignoring translations.RegionLocationInterval. classify(Vector1D pt)Classify the given point with respect to the region.HyperplaneLocationOrientedPoint. classify(Vector1D pt)Classify a point with respect to this hyperplane.RegionLocationOrientedPoint.OrientedPointConvexSubset. classify(Vector1D point)Classify a point with respect to the subset region.Vector1DOrientedPoint.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 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.UnitVector1D. 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.doubleVector1D. distance(Vector1D v)Compute the distance between the instance and another vector.doubleVector1D. distanceSq(Vector1D v)Compute the square of the distance between the instance and another vector.doubleVector1D. dot(Vector1D v)Compute the dot-product of the instance and another vector.booleanVector1D. 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.UnitVector1D.Unit. from(Vector1D v)Create 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.Vector1DVector1D. lerp(Vector1D p, double t)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.SumVector1D.Sum. of(Vector1D initial)Construct a new instance with an initial value set to the argument.static Vector1D.SumVector1D.Sum. of(Vector1D first, Vector1D... more)Construct a new instance from multiple values.doubleOrientedPoint. offset(Vector1D pt)Get the offset (oriented distance) of a point with respect to this instance.Vector1DInterval. project(Vector1D pt)Project a point onto the boundary of the region.Vector1DOrientedPoint. project(Vector1D pt)Project a point onto this instance.Vector1DRegionBSPTree1D. project(Vector1D pt)Project a point onto the boundary of the region.AffineTransformMatrix1DAffineTransformMatrix1D. scale(Vector1D scaleFactor)Get a new transform containing the result of applying a scale operation logically after the transformation represented by the current instance.Vector1DVector1D. subtract(double factor, Vector1D v)Subtract a scaled vector from the instance.Vector1DVector1D. subtract(Vector1D v)Subtract a vector from the instance.AffineTransformMatrix1DAffineTransformMatrix1D. translate(Vector1D translation)Get a new transform containing the result of applying a translation logically after the transformation represented by the current instance.Vector1DVector1D. 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 AffineTransformMatrix1DAffineTransformMatrix1D. from(java.util.function.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.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 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.IntervalInterval. transform(Transform<Vector1D> transform)Return a new instance transformed by the argument.OrientedPoint.OrientedPointConvexSubsetOrientedPoint.OrientedPointConvexSubset. transform(Transform<Vector1D> transform)Return a new hyperplane subset resulting from the application of the given transform.OrientedPointOrientedPoint. transform(Transform<Vector1D> transform)Transform this instance using the givenTransform.Vector1DVector1D. 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 Vector1DLine3D. toSubspace(Vector3D pt)Transform a space point into a subspace point.Vector1DLineSubset3D. 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 LineConvexSubset3DLines3D. subsetFromInterval(Line3D line, Vector1D a, Vector1D b)Create a line convex subset from a line and a 1D interval on the line.Vector3DLine3D. toSpace(Vector1D pt)Transform a subspace point into a space point.Vector3DLineSubset3D. 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 Vector1DLine. toSubspace(Vector2D point)Transform a space point into a subspace point.Vector1DLineSubset. 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 Vector2DLine. toSpace(Vector1D point)Transform a subspace point into a space point.Vector2DLineSubset. toSpace(Vector1D pt)Transform a subspace point into a space point.
-