mirror of
https://github.com/whoahq/whoa.git
synced 2026-02-02 00:32:45 +03:00
chore(ui): use inifinity value from limits for CFramePoint::UNDEFINED
This commit is contained in:
parent
db6a83bfb2
commit
54313696ee
@ -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);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user