$$ \gdef\pd#1#2{\frac{\partial #1}{\partial #2}} \gdef\d#1{\, \mathrm{d}#1} \gdef\dx{\d{x}} \gdef\tr#1{\operatorname{tr} (#1)} $$ $$ \gdef\norm#1{\left \lVert #1 \right\rVert} \gdef\seminorm#1{| #1 |} $$ $$ \gdef\vec#1{\mathbf{\boldsymbol{#1}}} \gdef\dvec#1{\bar{\vec #1}} $$
pub trait ClosestPointInElement<T: Scalar>: FiniteElement<T>where
    DefaultAllocator: BiDimAllocator<T, Self::GeometryDim, Self::ReferenceDim>,{
    // Required method
    fn closest_point(
        &self,
        p: &OPoint<T, Self::GeometryDim>
    ) -> ClosestPoint<T, Self::ReferenceDim>;
}
Expand description

A finite element you can query for the closest point to an arbitrary point.

Required Methods§

source

fn closest_point( &self, p: &OPoint<T, Self::GeometryDim> ) -> ClosestPoint<T, Self::ReferenceDim>

Implementors§