#pragma once #include #include namespace frostbite2D::gameMath { int32 RoundWorldCoordinate(float value); Vec2 MakeIntegerWorldPoint(int x, int y); Vec3 MakeIntegerWorldPosition(int x, int y, int z); bool IsPointOnSegment(const Vec2& point, const Vec2& start, const Vec2& end); bool IsPointInPolygon(const std::vector& polygon, const Vec2& point); bool IsPointMovable(const std::vector& polygon, int x, int y); std::vector BuildRectPolygon(const Rect& rect); std::vector BuildPolygonFillRects(const std::vector& polygon); } // namespace frostbite2D::gameMath