7 lines
171 B
Rust
7 lines
171 B
Rust
use traits::Number;
|
|
use aliases::TVec2;
|
|
|
|
/// The 2D perpendicular product between two vectors.
|
|
pub fn cross2d<N: Number>(v: &TVec2<N>, u: &TVec2<N>) -> N {
|
|
v.perp(u)
|
|
} |