Struct acap::cos::PrenormCosine [−][src]
pub struct PrenormCosine<T>(pub T);
Expand description
Equips any coordinate space with the cosine distance function for pre-normalized (unit magnitude) points.
Tuple Fields
0: T
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T> RefUnwindSafe for PrenormCosine<T> where
T: RefUnwindSafe,
impl<T> Send for PrenormCosine<T> where
T: Send,
impl<T> Sync for PrenormCosine<T> where
T: Sync,
impl<T> Unpin for PrenormCosine<T> where
T: Unpin,
impl<T> UnwindSafe for PrenormCosine<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
type Distance = <T as Coordinates>::Value
type Distance = <T as Coordinates>::Value
The type that represents distances.
Calculate the distance between this point and another one.
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
type Distance = <T as Coordinates>::Value
type Distance = <T as Coordinates>::Value
The type that represents distances.
Calculate the distance between this point and another one.
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
type Distance = <T as Coordinates>::Value
type Distance = <T as Coordinates>::Value
The type that represents distances.
Calculate the distance between this point and another one.
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
impl<T> Proximity<PrenormCosine<T>> for T where
T: Coordinates,
<T as Coordinates>::Value: Real,
type Distance = <T as Coordinates>::Value
type Distance = <T as Coordinates>::Value
The type that represents distances.
Calculate the distance between this point and another one.