Rechercher une page de manuel
s3d_vector_angle
Langue: en
Version: 275197 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
NAME
s3d_vector_angle - calculate angle between two vectorsSYNOPSIS
#include <s3d.h>
- float s3d_vector_angle(const float vector1[], const float vector2[]);
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)
AUTHOR
Simon Wunderlich
- Author of s3d
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre