MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / GetBounds

Method GetBounds

TombEngine/Game/Hud/DrawItems/DisplayItem.cpp:41–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 std::optional<std::pair<Vector2, Vector2>> DisplayItem::GetBounds() const
42 {
43 auto bounds = g_Renderer.GetDisplayItemBounds(*this);
44 if (!bounds.has_value())
45 return std::nullopt;
46
47 return bounds;
48 }
49
50 const EulerAngles& DisplayItem::GetRotation() const
51 {

Callers

nothing calls this directly

Calls 2

GetDisplayItemBoundsMethod · 0.80
has_valueMethod · 0.45

Tested by

no test coverage detected