1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use crate::math::{Point, Real};
use crate::query::gjk::VoronoiSimplex;
use crate::query::{PointProjection, PointQuery};
use crate::shape::{FeatureId, RoundShape, SupportMap};
impl<S: SupportMap> PointQuery for RoundShape<S> {
#[inline]
fn project_local_point(&self, point: &Point<Real>, solid: bool) -> PointProjection {
crate::query::details::local_point_projection_on_support_map(
self,
&mut VoronoiSimplex::new(),
point,
solid,
)
}
#[inline]
fn project_local_point_and_get_feature(
&self,
point: &Point<Real>,
) -> (PointProjection, FeatureId) {
(self.project_local_point(point, false), FeatureId::Unknown)
}
}