nalgebra/src/traits/cross.rs

9 lines
202 B
Rust
Raw Normal View History

/**
* Trait of elements having a cross product.
*/
pub trait Cross<Result>
{
2013-08-05 15:44:56 +08:00
/// Computes the cross product between two elements (usually vectors).
fn cross(&self, other : &Self) -> Result;
}