mirror of
https://github.com/krystalgamer/spidey-decomp.git
synced 2024-12-03 02:40:45 +00:00
63 lines
1.2 KiB
C++
63 lines
1.2 KiB
C++
// vector.h: interface for the CVector class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include "export.h"
|
|
#include "friction.h"
|
|
|
|
class CVector
|
|
{
|
|
public:
|
|
int vx;
|
|
int vy;
|
|
int vz;
|
|
EXPORT void KillSmall();
|
|
EXPORT CVector* operator-=(const CVector& other);
|
|
EXPORT CVector* operator>>=(const int& other);
|
|
EXPORT CVector* operator<<=(const int& other);
|
|
EXPORT CVector* operator*=(const int& other);
|
|
EXPORT CVector* operator/=(const int& other);
|
|
EXPORT CVector* operator+=(const CVector& other);
|
|
EXPORT CVector* operator%=(const CFriction& other);
|
|
|
|
EXPORT const CVector& operator=(const CVector& rhs) {
|
|
|
|
this->vx = rhs.vx;
|
|
this->vy = rhs.vy;
|
|
this->vz = rhs.vz;
|
|
|
|
return *this;
|
|
}
|
|
};
|
|
|
|
EXPORT CVector operator/(const CVector& lhs, const int& other);
|
|
EXPORT CVector operator-(const CVector& lhs, const CVector& other);
|
|
EXPORT CVector operator*(const CVector& lhs, const int& other);
|
|
EXPORT CVector operator*(const CVector& lhs, const CVector& other);
|
|
|
|
|
|
|
|
|
|
class CSVector{
|
|
|
|
public:
|
|
short vx;
|
|
short vy;
|
|
short vz;
|
|
|
|
};
|
|
|
|
struct SVector {
|
|
__int16 vx, vy, vz;
|
|
|
|
};
|
|
|
|
void validate_CVector(void);
|
|
void validate_CSVector(void);
|
|
void validate_SVector(void);
|