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

46 lines
2.3 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 {
// ------------------------------------------------------------------------------------------------
struct CWorldBounds
{
// --------------------------------------------------------------------------------------------
Vector2f min, max;
// --------------------------------------------------------------------------------------------
CWorldBounds() noexcept;
CWorldBounds(const Vector2f & vec) noexcept;
CWorldBounds(const Vector2f & min, const Vector2f & max) noexcept;
// --------------------------------------------------------------------------------------------
CWorldBounds(const CWorldBounds & x) noexcept;
CWorldBounds(CWorldBounds && x) noexcept;
// --------------------------------------------------------------------------------------------
~CWorldBounds();
// --------------------------------------------------------------------------------------------
CWorldBounds & operator= (const CWorldBounds & x) noexcept;
CWorldBounds & operator= (CWorldBounds && x) noexcept;
// --------------------------------------------------------------------------------------------
CWorldBounds operator+ (const CWorldBounds & x) const noexcept;
CWorldBounds operator- (const CWorldBounds & x) const noexcept;
CWorldBounds operator* (const CWorldBounds & x) const noexcept;
CWorldBounds operator/ (const CWorldBounds & x) const noexcept;
// --------------------------------------------------------------------------------------------
bool operator== (const CWorldBounds & x) const noexcept;
bool operator!= (const CWorldBounds & x) const noexcept;
// --------------------------------------------------------------------------------------------
SQInteger Cmp(const CWorldBounds & x) const noexcept;
// --------------------------------------------------------------------------------------------
void Set() const noexcept;
void Get() const noexcept;
};
} // Namespace:: SqMod
#endif // _MISC_WORLD_BOUNDS_HPP_