public interface Shape
It includes infinite and solid shapes. All of them must be able to compute their intersection and distance to a line.
Modifier and Type | Method and Description |
---|---|
Vector3D[] |
closestPointTo(Line line)
Computes the points of the shape and the line realizing
the shortest distance.
|
double |
distanceTo(Line line)
Computes the distance to a line.
|
Vector3D[] |
getIntersectionPoints(Line line)
Compute the intersection points with a line.
|
boolean |
intersects(Line line)
Tests the intersection with a line.
|
boolean intersects(Line line)
line
- the lineVector3D[] getIntersectionPoints(Line line)
line
- the linedouble distanceTo(Line line)
line
- the lineVector3D[] closestPointTo(Line line)
line
- the lineCopyright © 2019 CNES. All rights reserved.