Skip to main content

dot_product

Function dot_product 

Source
pub fn dot_product<T: Float>(a_0: T, a_1: T, b_0: T, b_1: T) -> T
Expand description

2D vector dot product function: a . b.

  • a_0, a_1 the first vector values.

  • b_0, b_1 the second vector values.

  • returns the dot product of the 2D vectors.