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

Method ForEachSide

libs/geometry/rect2d.hpp:134–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132
133 template <typename Fn>
134 void ForEachSide(Fn && fn) const
135 {
136 fn(LeftTop(), LeftBottom());
137 fn(LeftBottom(), RightBottom());
138 fn(RightBottom(), RightTop());
139 fn(RightTop(), LeftTop());
140 }
141
142 bool IsIntersect(Rect const & r) const
143 {

Callers 2

GetDistanceMetersFunction · 0.80
SegmentCrossesRectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected