Uses of Class
org.apache.commons.geometry.euclidean.threed.line.Line3D
Packages that use Line3D
Package
Description
This package provides basic 3D geometry components.
This package provides classes and utilities for lines in 3D Euclidean space.
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 Line3DModifier and TypeMethodDescriptionPlane.intersection
(Plane other) Get the line formed by the intersection of this instance with the given plane.Project a 3D line onto the plane.Methods in org.apache.commons.geometry.euclidean.threed with parameters of type Line3DModifier and TypeMethodDescriptionboolean
Check if the instance contains a line.AbstractPlaneSubset.intersection
(Line3D line) Get the unique intersection of this plane subset with the given line.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.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
Get the offset (oriented distance) of the given line with respect to the plane.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 Line3DModifier and TypeFieldDescriptionprivate final Line3D
Line3D.SubspaceTransform.line
The transformed line.private final Line3D
LineSubset3D.line
The line containing this instance.Methods in org.apache.commons.geometry.euclidean.threed.line that return Line3DModifier and TypeMethodDescriptionstatic 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.SubspaceTransform.getLine()
Get the transformed line instance.LineSubset3D.getLine()
Get the line containing this subset.Line3D.reverse()
Return a line containing the same points as this instance but pointing in the opposite direction.Transform this instance.Methods in org.apache.commons.geometry.euclidean.threed.line with parameters of type Line3DModifier and TypeMethodDescriptionCompute the point of the instance closest to another line.double
Compute the shortest distance between the instance and another line.boolean
Return true if this instance should be considered equivalent to the argument, using the given precision context for comparison.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 List
<LinecastPoint3D> 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
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 Line3DModifierConstructorDescriptionConstruct 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.(package private)
LineConvexSubset3D
(Line3D line) Construct a new instance for the given line.(package private)
LineSpanningSubset3D
(Line3D line) Construct a new instance for the given line.(package private)
LineSubset3D
(Line3D line) Construct a new instance based on the given line.(package private)
Construct a ray from a line and a 1D start location.(package private)
Construct a ray from a line and a start point.(package private)
ReverseRay3D
(Line3D line, double end) Construct a new instance from the given line and 1D end location.(package private)
ReverseRay3D
(Line3D line, Vector3D endPoint) Construct a new instance from the given line and end point.(package private)
Construct a new instance from a line and two abscissa locations on the line.(package private)
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 Line3DModifier and TypeMethodDescriptionSphere.firstIntersection
(Line3D line) Get the first intersection point between the given line and this sphere, or null if no such point exists.Sphere.intersections
(Line3D line) Get the intersections of the given line with this sphere.