#include <utils/utils.h>
#include <math.h>
Go to the source code of this file.
On peut faire des operations suivantes:
les vecteurs et les points sont declares tous deus comme "vect" leur differences resident uniquement dans l'utilisation on peut par ex faire une addition vectorielle d un point (qui peut etre finalement represente par un vecteur et une origine) avec un vecteur, ce qui donnera un nouveau point.
Definition in file vect2.h.
|
|
|
|
|
|
|
|
Definition at line 67 of file vect2.h. Referenced by __trajectory_gotoxy(), pos_aller_a(), shot_angle(), shot_angle2(), and trajectory_gotoa_fromxy(). |
|
|
Definition at line 68 of file vect2.h. Referenced by pos_position_manage(), vect2_2cart(), vect2_2pol(), vect2_2type(), and vect2_homotetie(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
le meme en cartésien Definition at line 101 of file vect2.c. References VECT2_POLAIRE. Referenced by pos_aller_a(), vect2_2type(), vect2_add(), and vect2_sub(). |
|
||||||||||||
|
convertir un vecteur en coordonnées polaires Definition at line 69 of file vect2.c. References VECT2_POLAIRE. Referenced by shot_angle(), shot_angle2(), trajectory_gotoa_fromxy(), vect2_2type(), vect2_rotation(), vect2_vect_from_rep(), and vect2_vect_to_rep(). |
|
||||||||||||||||
|
le meme en universel Definition at line 124 of file vect2.c. References vect2_2cart(), vect2_2pol(), and VECT2_POLAIRE. |
|
||||||||||||||||
|
addition entre 2 vecteurs ayant le meme repere dest = dest + src sortie toujours en cartesien optimal si l'entree est cartesienne Definition at line 144 of file vect2.c. References vect2_2cart(). Referenced by vect2_point_from_rep(). |
|
||||||||||||
|
Definition at line 224 of file vect2.c. References NULL. Referenced by pos_position_manage(), and vect2_vect_from_rep(). |
|
||||||||||||
|
conversion d'un angle en un autre repere Definition at line 217 of file vect2.c. References NULL. Referenced by pos_aller_a(), pos_avancer_angle(), pos_rotation_rayon(), pos_tourne(), and vect2_vect_to_rep(). |
|
||||||||||||
|
multiplication d un vecteur par un nombre sortie au meme format que l'entree Definition at line 193 of file vect2.c. References VECT2_POLAIRE. |
|
||||||||||||
|
modulo 0-2pi |
|
||||||||||||
|
modulo -pi-pi Definition at line 53 of file vect2.c. Referenced by aller_a_manage(). |
|
||||||||||||
|
conversion d un repere quelconque vers le repere unité optimal si l'entrée est polaire sortie toujours en cartesiens Definition at line 304 of file vect2.c. References NULL, vect2_add(), and vect2_vect_from_rep(). Referenced by pos_aller_a(), and pos_position_manage(). |
|
||||||||||||
|
conversion d'un point : meme chose qu'un vecteur, on y ajoute le deplacement d'origine ! du repere unité vers un repere quelconque vraiment pas optimise, car le vect2_add fonctionne en cartesien puis on convertit en polaire optimal si l'entrée est en cartesien sortie toujours en polaire Definition at line 287 of file vect2.c. References NULL, vect2_sub(), and vect2_vect_to_rep(). Referenced by aller_a_manage(). |
|
||||||||||||||||
|
Definition at line 167 of file vect2.c. References vect2_2cart(). Referenced by shot_angle(), shot_angle2(), trajectory_gotoa_fromxy(), and vect2_point_to_rep(). |
|
||||||||||||
|
Definition at line 257 of file vect2.c. References NULL, vect2_2pol(), and vect2_angle_from_rep(). Referenced by vect2_point_from_rep(). |
|
||||||||||||
|
conversion d'echelle d'un vecteur (pas de deplacement d'origine!) sortie toujours en polaire Definition at line 236 of file vect2.c. References NULL, vect2_2pol(), and vect2_angle_to_rep(). Referenced by vect2_point_to_rep(). |
1.4.5