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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Plane.contains(Line3D line)
Check if the instance contains a line.
|
Vector3D |
PlaneSubset.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.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static Line3D |
Lines3D.fromPointAndDirection(Vector3D pt,
Vector3D dir,
Precision.DoubleEquivalence precision)
Create a new line instance from a point and a direction.
|
static Line3D |
Lines3D.fromPoints(Vector3D p1,
Vector3D p2,
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.
|
Modifier and Type | Method and 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,
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 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 on
line 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
of
line . |
static ReverseRay3D |
Lines3D.reverseRayFromLocation(Line3D line,
double endLocation)
Construct a reverse ray starting at infinity and continuing in the direction of
line
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 of
line
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 a
LineConvexSubset3D 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.
|
Constructor and 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.
|
SubspaceTransform(Line3D line,
AffineTransformMatrix1D transform)
Simple constructor.
|
Modifier and Type | Method and 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.
|
List<Vector3D> |
Sphere.intersections(Line3D line)
Get the intersections of the given line with this sphere.
|
Copyright © 2016–2021 The Apache Software Foundation. All rights reserved.