Uses of Class
org.apache.commons.geometry.euclidean.threed.line.Line3D
-
Packages that use Line3D Package Description org.apache.commons.geometry.euclidean.threed This package provides basic 3D 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.threed.shape This package provides utilities for constructing basic 3D shapes. -
-
Uses of Line3D in org.apache.commons.geometry.euclidean.threed
Methods in org.apache.commons.geometry.euclidean.threed that return Line3D Modifier and Type Method Description Line3D
Plane. intersection(Plane other)
Get the line formed by the intersection of this instance with the given plane.Line3D
Plane. project(Line3D line)
Project a 3D line onto the plane.Methods in org.apache.commons.geometry.euclidean.threed with parameters of type Line3D Modifier and Type Method Description boolean
Plane. contains(Line3D line)
Check if the instance contains a line.Vector3D
AbstractPlaneSubset. intersection(Line3D line)
Get the unique intersection of this plane subset with the given line.Vector3D
Plane. intersection(Line3D line)
Get the intersection of a line with this plane.(package private) static Vector3D
Planes. intersection(PlaneSubset planeSubset, Line3D line)
Get the unique intersection of the plane subset with the given line.Vector3D
PlaneSubset. intersection(Line3D line)
Get the unique intersection of this plane subset with the given line.boolean
Plane. isParallel(Line3D line)
Check if the line is parallel to the instance.double
Plane. offset(Line3D line)
Get the offset (oriented distance) of the given line with respect to the plane.Line3D
Plane. project(Line3D line)
Project a 3D line onto the plane. -
Uses of Line3D in org.apache.commons.geometry.euclidean.threed.line
Fields in org.apache.commons.geometry.euclidean.threed.line declared as Line3D Modifier and Type Field Description private Line3D
Line3D.SubspaceTransform. line
The transformed line.private Line3D
LineSubset3D. line
The line containing this instance.Methods in org.apache.commons.geometry.euclidean.threed.line that return Line3D Modifier and Type Method Description static Line3D
Lines3D. fromPointAndDirection(Vector3D pt, Vector3D dir, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Create a new line instance from a point and a direction.static Line3D
Lines3D. fromPoints(Vector3D p1, Vector3D p2, org.apache.commons.numbers.core.Precision.DoubleEquivalence precision)
Create a new line instance from two points that lie on the line.Line3D
Line3D.SubspaceTransform. getLine()
Get the transformed line instance.Line3D
LineSubset3D. getLine()
Get the line containing this subset.Line3D
Line3D. reverse()
Return a line containing the same points as this instance but pointing in the opposite direction.Line3D
Line3D. transform(Transform<Vector3D> transform)
Transform this instance.Methods in org.apache.commons.geometry.euclidean.threed.line with parameters of type Line3D Modifier and Type Method Description Vector3D
Line3D. closest(Line3D line)
Compute the point of the instance closest to another line.double
Line3D. distance(Line3D line)
Compute the shortest distance between the instance and another line.boolean
Line3D. eq(Line3D other, org.apache.commons.numbers.core.Precision.DoubleEquivalence ctx)
Return true if this instance should be considered equivalent to the argument, using the given precision context for comparison.Vector3D
Line3D. intersection(Line3D line)
Get the intersection point of the instance and another line.boolean
Line3D. isSimilarTo(Line3D line)
Check if the instance is similar to another line.default java.util.List<LinecastPoint3D>
Linecastable3D. linecast(Line3D line)
Intersect the given line against the boundaries in this instance, returning a list of all intersections in order of increasing distance along the line.default LinecastPoint3D
Linecastable3D. linecastFirst(Line3D line)
Intersect the given line against the boundaries in this instance, returning the first intersection found when traveling in the direction of the line from infinity.static Ray3D
Lines3D. rayFromLocation(Line3D line, double startLocation)
Construct a ray starting at the given 1D location online
and continuing in the direction of the line to infinity.static Ray3D
Lines3D. rayFromPoint(Line3D line, Vector3D startPoint)
Construct a ray starting at the given point and continuing to infinity in the direction ofline
.static ReverseRay3D
Lines3D. reverseRayFromLocation(Line3D line, double endLocation)
Construct a reverse ray starting at infinity and continuing in the direction ofline
to the given 1D end location.static ReverseRay3D
Lines3D. reverseRayFromPoint(Line3D line, Vector3D endPoint)
Construct a reverse ray starting at infinity and continuing in the direction ofline
to the given end point.static Segment3D
Lines3D. segmentFromLocations(Line3D line, double a, double b)
Construct a new line segment from a pair of 1D locations on a line.static Segment3D
Lines3D. segmentFromPoints(Line3D line, Vector3D a, Vector3D b)
Construct a new line segment from a line and a pair of points.static LineConvexSubset3D
Lines3D. span(Line3D line)
Create aLineConvexSubset3D
spanning the entire line.static LineConvexSubset3D
Lines3D. subsetFromInterval(Line3D line, double a, double b)
Create a line convex subset from a line and a 1D interval on the line.static LineConvexSubset3D
Lines3D. subsetFromInterval(Line3D line, Interval interval)
Create a line convex subset from a line and a 1D interval on the line.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.Constructors in org.apache.commons.geometry.euclidean.threed.line with parameters of type Line3D Constructor Description EmbeddedTreeLineSubset3D(Line3D line)
Construct a new, empty subset for the given line.EmbeddedTreeLineSubset3D(Line3D line, boolean full)
Construct a new subset for the given line.EmbeddedTreeLineSubset3D(Line3D line, RegionBSPTree1D region)
Construct a new instance from its defining line and subspace region.LinecastPoint3D(Vector3D point, Vector3D normal, Line3D line)
Construct a new instance from its components.LineConvexSubset3D(Line3D line)
Construct a new instance for the given line.LineSpanningSubset3D(Line3D line)
Construct a new instance for the given line.LineSubset3D(Line3D line)
Construct a new instance based on the given line.Ray3D(Line3D line, double start)
Construct a ray from a line and a 1D start location.Ray3D(Line3D line, Vector3D startPoint)
Construct a ray from a line and a start point.ReverseRay3D(Line3D line, double end)
Construct a new instance from the given line and 1D end location.ReverseRay3D(Line3D line, Vector3D endPoint)
Construct a new instance from the given line and end point.Segment3D(Line3D line, double start, double end)
Construct a new instance from a line and two abscissa locations on the line.Segment3D(Line3D line, Vector3D startPoint, Vector3D endPoint)
Construct a new instance from a line and two points on the line.SubspaceTransform(Line3D line, AffineTransformMatrix1D transform)
Simple constructor. -
Uses of Line3D in org.apache.commons.geometry.euclidean.threed.shape
Methods in org.apache.commons.geometry.euclidean.threed.shape with parameters of type Line3D Modifier and Type Method Description Vector3D
Sphere. firstIntersection(Line3D line)
Get the first intersection point between the given line and this sphere, or null if no such point exists.java.util.List<Vector3D>
Sphere. intersections(Line3D line)
Get the intersections of the given line with this sphere.
-