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.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractLinecastPoint<P extends EuclideanVector<P>,U extends P,L extends Embedding<P,Vector1D>>
Base class for intersections discovered during linecast operations.
|
Modifier and Type | Method and Description |
---|---|
protected <L extends Embedding<V,Vector1D>> |
AbstractNSphere.firstIntersection(L line,
ToDoubleBiFunction<L,V> abscissaFn,
ToDoubleBiFunction<L,V> distanceFn)
Internal method to compute the first intersection between a line and this instance.
|
protected <L extends Embedding<V,Vector1D>> |
AbstractNSphere.intersections(L line,
ToDoubleBiFunction<L,V> abscissaFn,
ToDoubleBiFunction<L,V> distanceFn)
Internal method to compute the intersections between a line and this instance.
|
Modifier and Type | Class and Description |
---|---|
static class |
Vector1D.Unit
Represent unit vectors.
|
Modifier and Type | Field and 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.
|
static Vector1D |
Vector1D.POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.
|
static Vector1D |
Vector1D.ZERO
Zero vector (coordinates: 0).
|
Modifier and Type | Field and Description |
---|---|
static Comparator<Vector1D> |
Vector1D.COORDINATE_ASCENDING_ORDER
Comparator that sorts vectors in component-wise ascending order.
|
Modifier and Type | Method and Description |
---|---|
Vector1D |
Vector1D.add(double factor,
Vector1D v) |
Vector1D |
Vector1D.add(Vector1D v) |
Vector1D |
AffineTransformMatrix1D.apply(Vector1D vec) |
Vector1D |
AffineTransformMatrix1D.applyVector(Vector1D vec)
Apply this transform to the given vector, ignoring translations.
|
Vector1D |
Vector1D.Sum.get() |
Vector1D |
Interval.getCentroid() |
Vector1D |
OrientedPoint.getPoint()
Get the location of the hyperplane as a point.
|
Vector1D |
Vector1D.getZero() |
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) |
Vector1D |
Vector1D.negate() |
Vector1D |
Vector1D.Unit.negate() |
static Vector1D |
Vector1D.of(double x)
Returns a vector with the given coordinate value.
|
static Vector1D |
Vector1D.parse(String str)
Parses the given string and returns a new vector instance.
|
Vector1D |
OrientedPoint.project(Vector1D pt) |
Vector1D |
RegionBSPTree1D.project(Vector1D pt) |
Vector1D |
Interval.project(Vector1D pt) |
Vector1D |
Vector1D.subtract(double factor,
Vector1D v) |
Vector1D |
Vector1D.subtract(Vector1D v) |
Vector1D |
Vector1D.transform(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.withNorm(double magnitude) |
Vector1D |
Vector1D.Unit.withNorm(double mag) |
Modifier and Type | Method and Description |
---|---|
protected AbstractRegionBSPTree.RegionSizeProperties<Vector1D> |
RegionBSPTree1D.computeRegionSizeProperties() |
HyperplaneConvexSubset<Vector1D> |
OrientedPoint.span() |
Modifier and Type | Method and Description |
---|---|
Vector1D |
Vector1D.add(double factor,
Vector1D v) |
Vector1D |
Vector1D.add(Vector1D v) |
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) |
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.
|
HyperplaneLocation |
OrientedPoint.classify(Vector1D pt) |
RegionLocation |
Interval.classify(Vector1D pt) |
static OrientedPoint |
OrientedPoints.createNegativeFacing(Vector1D point,
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,
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.
|
double |
Vector1D.distance(Vector1D v) |
double |
Vector1D.distanceSq(Vector1D v) |
double |
Vector1D.dot(Vector1D v) |
boolean |
Vector1D.eq(Vector1D vec,
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,
Precision.DoubleEquivalence precision)
Create a new instance from the given point and boolean direction value.
|
static OrientedPoint |
OrientedPoints.fromPointAndDirection(Vector1D point,
Vector1D direction,
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 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.
|
static Vector1D.Sum |
Vector1D.Sum.of(Vector1D first,
Vector1D... more)
Construct a new instance from multiple values.
|
static Interval |
Interval.of(Vector1D a,
Vector1D b,
Precision.DoubleEquivalence precision)
Create a new interval from the given points.
|
double |
OrientedPoint.offset(Vector1D pt) |
Vector1D |
OrientedPoint.project(Vector1D pt) |
Vector1D |
RegionBSPTree1D.project(Vector1D pt) |
Vector1D |
Interval.project(Vector1D pt) |
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) |
Vector1D |
Vector1D.subtract(Vector1D v) |
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.
|
Modifier and Type | Method and Description |
---|---|
static AffineTransformMatrix1D |
AffineTransformMatrix1D.from(UnaryOperator<Vector1D> fn)
Construct a new transform representing the given function.
|
boolean |
OrientedPoint.similarOrientation(Hyperplane<Vector1D> other) |
Split<RegionBSPTree1D> |
RegionBSPTree1D.split(Hyperplane<Vector1D> splitter) |
Split<Interval> |
Interval.split(Hyperplane<Vector1D> splitter) |
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.
|
OrientedPoint |
OrientedPoint.transform(Transform<Vector1D> transform) |
Interval |
Interval.transform(Transform<Vector1D> transform)
Return a new instance transformed by the argument.
|
Vector1D |
Vector1D.transform(UnaryOperator<Vector1D> fn)
Convenience method to apply a function to this vector.
|
Modifier and Type | Method and Description |
---|---|
Vector1D |
Line3D.toSubspace(Vector3D pt) |
Vector1D |
LineSubset3D.toSubspace(Vector3D pt) |
Modifier and Type | Method and Description |
---|---|
abstract HyperplaneBoundedRegion<Vector1D> |
LineSubset3D.getSubspaceRegion()
Get the subspace region for the instance.
|
Modifier and Type | Method and 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) |
Vector3D |
LineSubset3D.toSpace(Vector1D pt) |
Modifier and Type | Method and Description |
---|---|
Vector1D |
Line.toSubspace(Vector2D point) |
Vector1D |
LineSubset.toSubspace(Vector2D pt) |
Modifier and Type | Method and Description |
---|---|
abstract HyperplaneBoundedRegion<Vector1D> |
LineSubset.getSubspaceRegion() |
Modifier and Type | Method and Description |
---|---|
Vector2D |
Line.toSpace(Vector1D point) |
Vector2D |
LineSubset.toSpace(Vector1D pt) |
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.