inner_product


Description:

public double inner_product (Vector2 vector2)

Computes the inner (dot) product of two 2D vectors.

This product is zero if and only if the two vectors are orthogonal.

Parameters:

this

a pointer to the first Vector2.

vector2

a pointer to the second Vector2.

Returns:

The inner product.