1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-03 07:27:11 +02:00

Dumped the old implementation. Started with a more simple approach.

This commit is contained in:
Sandu Liviu Catalin
2016-02-21 00:25:00 +02:00
parent 96ded94026
commit 06e598acfb
293 changed files with 37439 additions and 92564 deletions

View File

@ -2,21 +2,20 @@
#define _BASE_VECTOR4_HPP_
// ------------------------------------------------------------------------------------------------
#include "Config.hpp"
#include "SqBase.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* ...
*
*/
struct Vector4
{
/* --------------------------------------------------------------------------------------------
* ...
*/
typedef SQFloat Value;
typedef float Value;
/* --------------------------------------------------------------------------------------------
* ...
@ -36,14 +35,14 @@ struct Vector4
Value x, y, z, w;
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Vector4();
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4(Value s);
Vector4(Value sv);
/* --------------------------------------------------------------------------------------------
* ...
@ -56,44 +55,19 @@ struct Vector4
Vector4(Value xv, Value yv, Value zv, Value wv);
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Vector4(const Vector3 & v);
Vector4(const Vector4 & o);
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4(const Quaternion & q);
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4(const SQChar * values, SQChar delim);
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4(const Vector4 & v);
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4(Vector4 && v);
/* --------------------------------------------------------------------------------------------
* ...
*
*/
~Vector4();
/* --------------------------------------------------------------------------------------------
* ...
*
*/
Vector4 & operator = (const Vector4 & v);
/* --------------------------------------------------------------------------------------------
* ...
*/
Vector4 & operator = (Vector4 && v);
Vector4 & operator = (const Vector4 & o);
/* --------------------------------------------------------------------------------------------
* ...
@ -273,12 +247,12 @@ struct Vector4
/* --------------------------------------------------------------------------------------------
* ...
*/
SQInteger Cmp(const Vector4 & v) const;
Int32 Cmp(const Vector4 & v) const;
/* --------------------------------------------------------------------------------------------
* ...
*/
const SQChar * ToString() const;
CSStr ToString() const;
/* --------------------------------------------------------------------------------------------
* ...
@ -313,7 +287,7 @@ struct Vector4
/* --------------------------------------------------------------------------------------------
* ...
*/
void Set(const SQChar * values, SQChar delim);
void Set(CSStr values, SQChar delim);
/* --------------------------------------------------------------------------------------------
* ...
@ -346,4 +320,4 @@ struct Vector4
} // Namespace:: SqMod
#endif // _BASE_VECTOR4_HPP_
#endif // _BASE_VECTOR4_HPP_