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 { ... }
}
Provided Methods§
sourcefn cross_product(&self, other: &Self) -> Self
fn cross_product(&self, other: &Self) -> Self
Cross product of two 3-element vectors
sourcefn uniform_dist_sphere3(x: [F; 2], map: bool) -> Self
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)