1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2024-11-08 08:47:17 +01:00
SqMod/source/Misc/WorldBounds.hpp
Sandu Liviu Catalin 6ed02d0fd4 Initial commit.
2015-09-30 03:56:11 +03:00

46 lines
2.3 KiB
C++

#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_