Interface RayIntersectionServices
public interface RayIntersectionServices
Stateless services for ray casting.
It is a wrapper to the stateful implementation in
RayIntersectionVisitor
.-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic RayIntersection
computeClosest
(Octree octree, RayIntersectionConfig strategy) Returns a closets intersection point, either positive or negative, ornull
.static RayIntersection
computeClosest
(Collection<Octree> octrees, RayIntersectionConfig strategy) Returns a closets intersection point, either positive or negative, ornull
.static SortedSet
<RayIntersection> computeSorted
(Octree octree, RayIntersectionConfig strategy) Returns found ray intersections sorted by distances.static SortedSet
<RayIntersection> computeSorted
(Collection<Octree> octrees, RayIntersectionConfig config) Returns found ray intersections sorted by distances.static List
<RayIntersection> computeUnsorted
(Octree kdTree, RayIntersectionConfig config) Returns ray intersections in random order and without distances.static List
<RayIntersection> computeUnsorted
(Collection<Octree> octrees, RayIntersectionConfig config) Returns ray intersections in random order and without distances.
-
Method Details
-
computeUnsorted
static List<RayIntersection> computeUnsorted(Collection<Octree> octrees, RayIntersectionConfig config) Returns ray intersections in random order and without distances.- Parameters:
octrees
- Meshes to be tested for ray intersectionconfig
- Configuration of the service- Returns:
- found intersections
-
computeUnsorted
Returns ray intersections in random order and without distances.- Parameters:
kdTree
- Mesh to be tested for ray intersectionconfig
- Configuration of the service- Returns:
- found intersections
-
computeSorted
static SortedSet<RayIntersection> computeSorted(Collection<Octree> octrees, RayIntersectionConfig config) Returns found ray intersections sorted by distances.- Parameters:
octrees
- Meshes to be tested for ray intersectionconfig
- Configuration of the service- Returns:
- found intersections
-
computeSorted
Returns found ray intersections sorted by distances.- Parameters:
octree
- Mesh to be tested for ray intersection. Must not benull
strategy
- Ray casting strategy and params. Must not benull
- Returns:
- found intersections
-
computeClosest
Returns a closets intersection point, either positive or negative, ornull
.- Parameters:
octrees
- Meshes to be tested for ray intersection. Must not benull
strategy
- Ray casting strategy and params. Must not benull
- Returns:
- found intersection
-
computeClosest
Returns a closets intersection point, either positive or negative, ornull
.- Parameters:
octree
- Mesh to be tested for ray intersection. Must not benull
strategy
- Ray casting strategy and params. Must not benull
- Returns:
- found intersection
-