#include "geo_utils.h"
#include <math.h>
#include <assert.h>
Go to the source code of this file.
Functions | |
float | Get_Distance (cPoint2D &p1, cPoint2D &p2) |
retourne la distance ente 'p1' et 'p2' | |
unsigned int | Get_Square_Distance (cPoint2D &p1, cPoint2D &p2) |
retourne la distance au carré entre 'p1' et 'p2' |
|
retourne la distance ente 'p1' et 'p2'
Definition at line 10 of file geo_utils.cpp. References cPoint2D::X, and cPoint2D::Y. Referenced by cPortal::Get_Cost(), cA_Star_Point::Get_Cost(), cPortal::Get_Estimated_Cost(), and cA_Star_Point::Get_Estimated_Cost(). |
|
retourne la distance au carré entre 'p1' et 'p2'
Definition at line 18 of file geo_utils.cpp. References cPoint2D::X, and cPoint2D::Y. Referenced by cEnnemy::Get_Destination(), cRed_Ball::Get_Destination(), cBlue_Ball::Get_Destination(), cGame_Manager::Is_Free_Place(), and cGame_Manager::Test_Collisions(). |