MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Union

Method Union

Source/Engine/Core/Math/Rectangle.cpp:68–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68Rectangle Rectangle::Union(const Rectangle& a, const Float2& b)
69{
70 const float left = Math::Min(a.GetLeft(), b.X);
71 const float right = Math::Max(a.GetRight(), b.X);
72 const float top = Math::Min(a.GetTop(), b.Y);
73 const float bottom = Math::Max(a.GetBottom(), b.Y);
74 return Rectangle(left, top, Math::Max(right - left, 0.0f), Math::Max(bottom - top, 0.0f));
75}
76
77Rectangle Rectangle::Union(const Rectangle& a, const Rectangle& b)
78{

Callers 10

VisjectSurfaceClass · 0.45
ShowSelectionMethod · 0.45
GetNodesBoundsMethod · 0.45
UpdateTransitionsMethod · 0.45
ShowActorsMethod · 0.45
UpdateKeyframesMethod · 0.45
UpdateKeyframesMethod · 0.45
SelectRangeMethod · 0.45
UpdateKeyframesMethod · 0.45
DeployFilesMethod · 0.45

Calls 5

GetLeftMethod · 0.80
GetRightMethod · 0.80
MinFunction · 0.70
MaxFunction · 0.70
RectangleClass · 0.70

Tested by

no test coverage detected