MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / ImVec2ih

Class ImVec2ih

extern/imgui/imgui_internal.h:516–522  ·  view source on GitHub ↗

Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)

Source from the content-addressed store, hash-verified

514
515// Helper: ImVec2ih (2D vector, half-size integer, for long-term packed storage)
516struct ImVec2ih
517{
518 short x, y;
519 constexpr ImVec2ih() : x(0), y(0) {}
520 constexpr ImVec2ih(short _x, short _y) : x(_x), y(_y) {}
521 constexpr explicit ImVec2ih(const ImVec2& rhs) : x((short)rhs.x), y((short)rhs.y) {}
522};
523
524// Helper: ImRect (2D axis aligned bounding-box)
525// NB: we can't rely on ImVec2 math operators being available here!

Calls

no outgoing calls

Tested by

no test coverage detected