mirror of
https://github.com/whoahq/whoa.git
synced 2026-11-27 08:13:50 +03:00
chore(ui): use inifinity value from limits for CFramePoint::UNDEFINED
This commit is contained in:
1 file changed
+2
-1
@@ -1,8 +1,9 @@
|
|||||||
#include "ui/CFramePoint.hpp"
|
#include "ui/CFramePoint.hpp"
|
||||||
#include "ui/CLayoutFrame.hpp"
|
#include "ui/CLayoutFrame.hpp"
|
||||||
#include <storm/Error.hpp>
|
#include <storm/Error.hpp>
|
||||||
|
#include <limits>
|
||||||
|
|
||||||
const float CFramePoint::UNDEFINED = 3.4028237e38;
|
const float CFramePoint::UNDEFINED = std::numeric_limits<float>::infinity();
|
||||||
|
|
||||||
CFramePoint::CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY) {
|
CFramePoint::CFramePoint(CLayoutFrame* relative, FRAMEPOINT framePoint, float offsetX, float offsetY) {
|
||||||
STORM_ASSERT(relative != nullptr && framePoint != FRAMEPOINT_NUMPOINTS);
|
STORM_ASSERT(relative != nullptr && framePoint != FRAMEPOINT_NUMPOINTS);
|
||||||
|
|||||||
Reference in new issue
Block a user