Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

geo_utils.cpp File Reference

#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'


Function Documentation

float Get_Distance cPoint2D p1,
cPoint2D 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().

unsigned int Get_Square_Distance cPoint2D p1,
cPoint2D p2
 

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().


Generated on Fri May 21 19:22:37 2004 for LIBELL by doxygen 1.3.7