Function collision::dbvt::query_ray
[−]
[src]
pub fn query_ray<'a, S, T: 'a, P>(
tree: &'a DynamicBoundingVolumeTree<T>,
ray: Ray<S, P, P::Diff>
) -> Vec<(&'a T, P)> where
S: BaseFloat,
T: TreeValue,
P: EuclideanSpace<Scalar = S>,
P::Diff: VectorSpace<Scalar = S> + InnerSpace,
T::Bound: Clone + Contains<T::Bound> + SurfaceArea<Scalar = S> + Union<T::Bound, Output = T::Bound> + Continuous<Ray<S, P, P::Diff>, Result = P> + Discrete<Ray<S, P, P::Diff>>,
Query the given tree for all values that intersects the given ray.
Parameters:
tree
: DBVT to query.ray
: Ray to find intersections for.
Returns
Returns all values that intersected the ray, and also at which point the intersections occurred.