-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelpers.h
More file actions
37 lines (18 loc) · 838 Bytes
/
Copy pathHelpers.h
File metadata and controls
37 lines (18 loc) · 838 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "Headers.h"
#include "DataTypes.h"
extern HWND ghWnd;
using namespace DirectX;
void ReadDataFromFile(LPCWSTR filename, byte** data, UINT* size);
void Error(LPCWSTR header, LPCWSTR info);
bool IntersectsFloat(XMFLOAT4& rectA, XMFLOAT4& rectB);
bool AABBIntersect2D(XMFLOAT4& rectA, XMFLOAT3& pos, XMFLOAT3& vel, XMFLOAT4& rectB);
void CreateItem(float x, float y, float z, char* type);
//bool Overlap(GameObj* obj1, GameObj* obj2);
bool InRange(float value, float min, float max);
float PercentToFloat(float percent, float dim);
XMFLOAT3 GetDistanceVector(XMFLOAT3 position, XMFLOAT3 target);
XMFLOAT3 BasicTween(XMFLOAT3& position, XMFLOAT3 target, float ease);
bool NumberInRange(int num, int minNum, int maxNum);
double GetNormalDist(double x, double y);
double GetRealDist(double x, double y);