1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 16:57:16 +01:00
SqMod/source/Misc/WorldBounds.hpp

111 lines
3.5 KiB
C++
Raw Normal View History

2015-09-30 02:56:11 +02:00
#ifndef _MISC_WORLD_BOUNDS_HPP_
#define _MISC_WORLD_BOUNDS_HPP_
// ------------------------------------------------------------------------------------------------
#include "Common.hpp"
#include "Base/Vector2f.hpp"
// ------------------------------------------------------------------------------------------------
namespace SqMod {
/* ------------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
struct CWorldBounds
{
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
Vector2f min, max;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds() noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds(const Vector2f & vec) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds(const Vector2f & min, const Vector2f & max) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds(const CWorldBounds & x) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds(CWorldBounds && x) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
~CWorldBounds();
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds & operator= (const CWorldBounds & x) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds & operator= (CWorldBounds && x) noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds operator+ (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds operator- (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds operator* (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
CWorldBounds operator/ (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
bool operator== (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
bool operator!= (const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
SQInteger Cmp(const CWorldBounds & x) const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
void Set() const noexcept;
/* --------------------------------------------------------------------------------------------
* ...
*/
2015-09-30 02:56:11 +02:00
void Get() const noexcept;
};
} // Namespace:: SqMod
#endif // _MISC_WORLD_BOUNDS_HPP_