pub trait Locate<T>where
T: ?Sized,{
// Required method
fn locate(&self, target: &T) -> DVec3;
}Expand description
Locate a point.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Locate<ArcBetweenPoints> for Focus
impl Locate<ArcBetweenPoints> for Focus
fn locate(&self, target: &ArcBetweenPoints) -> DVec3
Source§impl Locate<ArcBetweenPoints> for Origin
impl Locate<ArcBetweenPoints> for Origin
fn locate(&self, target: &ArcBetweenPoints) -> DVec3
Source§impl Locate<EllipticArc> for Focus
impl Locate<EllipticArc> for Focus
fn locate(&self, target: &EllipticArc) -> DVec3
Source§impl Locate<EllipticArc> for Origin
impl Locate<EllipticArc> for Origin
fn locate(&self, _target: &EllipticArc) -> DVec3
Source§impl<T, G> Locate<Transformed<T, G>> for Focus
impl<T, G> Locate<Transformed<T, G>> for Focus
fn locate(&self, target: &Transformed<T, G>) -> DVec3
Source§impl<T, G> Locate<Transformed<T, G>> for Origin
impl<T, G> Locate<Transformed<T, G>> for Origin
fn locate(&self, target: &Transformed<T, G>) -> DVec3
Implementors§
impl Locate<DVec3> for Centroid
impl<I, G> Locate<Node<I, G>> for Centroid
The centroid of a tree weights every flattened leaf equally: sum each leaf’s centroid mapped through its accumulated world affine and divide by the leaf count — NOT per-child weighting. An empty tree warns and returns zero instead of producing NaNs.