logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

s3d_vector_angle - calculate angle between two vectors

Author

SimonWunderlich
           Author of s3d

s3d                                                                                          S3D_VECTOR_ANGLE(3)

Description

       Calculates and returns the angle between vector1 and vector2. Please note that the resulting angle is
       between 0 and PI, therefore not covering the whole period! To convert in degrees just do result*180/M_PI.
       All vectors should have the format float[3]. More info on wikipedia.
       http://en.wikipedia.org/wiki/Vector_(spatial)

Name

       s3d_vector_angle - calculate angle between two vectors

Synopsis

#include<s3d.h>floats3d_vector_angle(constfloatvector1[],constfloatvector2[]);

See Also