MCPcopy Create free account
hub / github.com/comaps/comaps / IsRectInside

Method IsRectInside

libs/geometry/rect2d.hpp:152–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 }
151
152 bool IsRectInside(Rect<T> const & rect) const
153 {
154 return (IsPointInside(Point<T>(rect.minX(), rect.minY())) && IsPointInside(Point<T>(rect.maxX(), rect.maxY())));
155 }
156
157 Point<T> Center() const { return Point<T>((m_minX + m_maxX) / 2.0, (m_minY + m_maxY) / 2.0); }
158 T SizeX() const { return std::max(static_cast<T>(0), m_maxX - m_minX); }

Callers 14

operator()Method · 0.45
IsEqualFunction · 0.45
GetRectCaseFunction · 0.45
GetMethod · 0.45
CoverRectFunction · 0.45
CoverSpiralFunction · 0.45
StoreDisplacementInfoMethod · 0.45
LoadViewportMethod · 0.45
RunTestFunction · 0.45
DrapeEngineMethod · 0.45
CheckBordersFunction · 0.45

Calls 4

minXMethod · 0.80
minYMethod · 0.80
maxXMethod · 0.80
maxYMethod · 0.80

Tested by 1

RunTestFunction · 0.36