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

Method FromPoints

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

Source from the content-addressed store, hash-verified

93}
94
95Rectangle Rectangle::FromPoints(const Float2& p1, const Float2& p2)
96{
97 const Float2 upperLeft = Float2::Min(p1, p2);
98 const Float2 rightBottom = Float2::Max(p1, p2);
99 return Rectangle(upperLeft, Math::Max(rightBottom - upperLeft, Float2::Zero));
100}
101
102Rectangle Rectangle::FromPoints(const Float2* points, int32 pointsCount)
103{

Callers 15

UpdateMeshMethod · 0.45
GetBoundingBoxMethod · 0.45
DrawSelectionMethod · 0.45
GetConnectionEndPointMethod · 0.45
UpdateTransitionsMethod · 0.45
DrawMethod · 0.45
OnKeyframesSelectionMethod · 0.45
OnKeyframesSelectionMethod · 0.45
DrawMethod · 0.45

Calls 3

MinFunction · 0.70
MaxFunction · 0.70
RectangleClass · 0.70

Tested by

no test coverage detected