Move a bunch of math to cpp files + small fixes
# Conflicts: # src/control/CarCtrl.cpp # src/math/Matrix.h # src/math/Vector2D.h # src/math/math.cpp # src/render/Skidmarks.cpp
This commit is contained in:
@@ -8,18 +8,8 @@ public:
|
||||
float right; // x max
|
||||
float top; // y min
|
||||
|
||||
CRect(void){
|
||||
left = 1000000.0f;
|
||||
top = 1000000.0f;
|
||||
right = -1000000.0f;
|
||||
bottom = -1000000.0f;
|
||||
}
|
||||
CRect(float l, float t, float r, float b){
|
||||
left = l;
|
||||
top = t;
|
||||
right = r;
|
||||
bottom = b;
|
||||
}
|
||||
CRect(void);
|
||||
CRect(float l, float t, float r, float b);
|
||||
void ContainPoint(CVector const &v){
|
||||
if(v.x < left) left = v.x;
|
||||
if(v.x > right) right = v.x;
|
||||
|
||||
Reference in New Issue
Block a user