public interface Linecastable3D
Linecasting is a process that takes a line or line convex subset and intersects it with the boundaries of a region. This is similar to raycasting used for collision detection with the exception that the intersecting element can be a line or line convex subset and not just a ray.
Modifier and Type | Method and Description |
---|---|
default List<LinecastPoint3D> |
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.
|
List<LinecastPoint3D> |
linecast(LineConvexSubset3D subset)
Intersect the given line convex subset against the boundaries in this instance, returning
a list of all intersections in order of increasing distance along the line.
|
default LinecastPoint3D |
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.
|
LinecastPoint3D |
linecastFirst(LineConvexSubset3D subset)
Intersect the given line convex subset against the boundaries in this instance, returning
the first intersection found when traveling in the direction of the line subset from its
start point.
|
default List<LinecastPoint3D> linecast(Line3D line)
line
- line the line to intersectList<LinecastPoint3D> linecast(LineConvexSubset3D subset)
subset
- line subset to intersectdefault LinecastPoint3D linecastFirst(Line3D line)
line
- the line to intersectLinecastPoint3D linecastFirst(LineConvexSubset3D subset)
subset
- line subset to intersectCopyright © 2016–2021 The Apache Software Foundation. All rights reserved.