fn element_wise_apply<S, U, F>(a: Point3<S>, b: Point3<S>, f: F) -> Point3<U>
where
    F: Fn(S, S) -> U,
{
    Point3::new(f(a.x, b.x), f(a.y, b.y), f(a.z, b.z))
}
/// Applies the given function element wise.
Applies the given function element wise.
Applies the given function element wise .
fn element_wise_apply<S, U, F>(a: Point3<S>, b: Point3<S>, f: F) -> Point3<U>
where
    F: Fn(S, S) -> U,
{
    Point3::new(f(a.x, b.x), f(a.y, b.y), f(a.z, b.z))
}
fn element_wise_apply < S , U , F > ( a : Point3 < S > , b : Point3 < S > , f : F ) -> Point3 < U > where F : Fn ( S , S ) -> U , { Point3 :: new ( f ( a . x , b . x ) , f ( a . y , b . y ) , f ( a . z , b . z ) ) }
Applies the given function element wise.
Applies the given function element wise .
a
Point3<S>
b
Point3<S>
f
F
a
Point3<S>
b
Point3<S>
f
F