Trait nblast::TargetNeuron

source ·
pub trait TargetNeuron: QueryNeuron {
    // Required method
    fn nearest_match_dist_dot(
        &self,
        point: &Point3,
        tangent: &Normal3,
        alpha: Option<Precision>
    ) -> DistDot;
}
Expand description

Trait describing a neuron which can be the target (or the query) of an NBLAST match.

Required Methods§

source

fn nearest_match_dist_dot( &self, point: &Point3, tangent: &Normal3, alpha: Option<Precision> ) -> DistDot

For a given point and tangent vector, get the distance to its nearest point in the target, and the absolute dot product with that neighbor’s tangent (i.e. absolute cosine of the angle, as they are both unit-length).

Implementors§