Synopsis

double mth_CosineTwoVectors(double vec1[], double vec2[], int nc)

Purpose

Compute the cosine of the angle between two vectors.

Description

Compute the cosine of the angle between two vectors.

Input

vec1

First vector.

vec2

Second vector.

nc

Number of coordinates in the vectors (2 or 3).

Return

Cosine of the angle between the two vectors