NAME

get_vector_angle_in_radians - Computes the angle between two vectors in radians

SYNOPSIS

#include "m/m_vec_metric.h"

Example compile flags (system dependent):
  -DLINUX_386 -DLINUX_386_P4  
   -I/home/kobus/include
   -L/home/kobus/load/linux_386_p4 -L/usr/local/lib -L/usr/lib
  -lKJB         -llapack -lblas -lg2c          -lXext -lX11 


int get_vector_angle_in_radians
(
	const Vector *vp1,
	const Vector *vp2,
	double *result_ptr
);

DESCRIPTION

This routine computes the angle between two vectors in radians and puts the result in *result_ptr.

RETURNS

NO_ERROR on success, and ERROR on failure. This routine will fail if either of the vectors is too close to zero, or the vectors are of un-equal length. It should be noted that this error is currently treated as bug (see kjb_bug(3)).

DISCLAIMER

This software is not adequatedly tested. It is recomended that results are checked independantly where appropriate.

AUTHOR

Kobus Barnard

DOCUMENTOR

Kobus Barnard

SEE ALSO

max_abs_vector_difference , get_vector_angle_in_degrees , get_dot_product , vector_distance , vector_distance_sqrd