base init
This commit is contained in:
17
src/game/vector.h
Normal file
17
src/game/vector.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef __INC_METIN_II_GAME_VECTOR_H__
|
||||
#define __INC_METIN_II_GAME_VECTOR_H__
|
||||
|
||||
typedef struct SVector
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
} VECTOR;
|
||||
|
||||
extern void Normalize(VECTOR * pV1, VECTOR * pV2);
|
||||
extern float GetDegreeFromPosition(float x, float y);
|
||||
extern float GetDegreeFromPositionXY(long sx, long sy, long ex, long ey);
|
||||
extern void GetDeltaByDegree(float fDegree, float fDistance, float *x, float *y);
|
||||
extern float GetDegreeDelta(float iDegree, float iDegree2);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user