Dot Product Calculation

Calculate the scalar product of two vectors.

Topics

Dot Product Calculation

static func dot<U>(U, U) -> Double

Returns the double-precision dot product of two vectors.

static func dot<U>(U, U) -> Float

Returns the single-precision dot product of two vectors.

See Also

Vector Geometry Functions

Vector-to-Vector Distance and Pythagorean Computation

Calculate distance and hypotenuse of vectors.