Trait geo_nd::Vector3

source ·
pub trait Vector3<F: Float>: Vector<F, 3> {
    // Provided methods
    fn cross_product(&self, other: &Self) -> Self { ... }
    fn uniform_dist_sphere3(x: [F; 2], map: bool) -> Self { ... }
}
Expand description

The Vector3 trait describes a 3-dimensional vector of Float

Provided Methods§

source

fn cross_product(&self, other: &Self) -> Self

Cross product of two 3-element vectors

source

fn uniform_dist_sphere3(x: [F; 2], map: bool) -> Self

Get a point on a sphere uniformly distributed for a point where x in [0,1) and y in [0,1)

Implementors§

source§

impl<F: Float> Vector3<F> for FArray<F, 3>