[nav] some functions should be static (line and survey OSAM)

This commit is contained in:
Gautier Hattenberger
2013-11-04 22:13:53 +01:00
committed by Felix Ruess
parent 15b1240008
commit f1f1a1a4bb
2 changed files with 7 additions and 8 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ static float FLRadius;
/*
Translates point so (transX, transY) are (0,0) then rotates the point around z by Zrot
*/
void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY)
static void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY)
{
float temp;
@@ -35,13 +35,12 @@
struct Point2D {float x; float y;};
struct Line {float m;float b;float x;};
void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY);
void RotateAndTranslateToWorld(struct Point2D *p, float Zrot, float transX, float transY);
void FindInterceptOfTwoLines(float *x, float *y, struct Line L1, struct Line L2);
float EvaluateLineForY(float x, struct Line L);
float EvaluateLineForX(float y, struct Line L);
float DistanceEquation(struct Point2D p1,struct Point2D p2);
static void TranslateAndRotateFromWorld(struct Point2D *p, float Zrot, float transX, float transY);
static void RotateAndTranslateToWorld(struct Point2D *p, float Zrot, float transX, float transY);
static void FindInterceptOfTwoLines(float *x, float *y, struct Line L1, struct Line L2);
static float EvaluateLineForY(float x, struct Line L);
static float EvaluateLineForX(float y, struct Line L);
static float DistanceEquation(struct Point2D p1,struct Point2D p2);
#define PolygonSize 10
#define MaxFloat 1000000000