|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Shape
Interface for all shapes.
It includes infinite and solid shapes. All of them must be able to compute their intersection and distance to a line.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean intersects(Line line)
line
- the line
Vector3D[] getIntersectionPoints(Line line)
line
- the line
double distanceTo(Line line)
line
- the line
Vector3D[] closestPointTo(Line line)
line
- the line
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |