MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / intersection

Method intersection

ogsr_engine/xrCore/_rect.h:178–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176 IC BOOL intersected(SelfCRef b) const { return intersected(*this, b); }
177
178 IC BOOL intersection(SelfCRef b1, SelfCRef b2)
179 {
180 if (!intersected(b1, b2))
181 return (FALSE);
182
183 x1 = _max(b1.x1, b2.x1);
184 y1 = _max(b1.y1, b2.y1);
185 x2 = _min(b1.x2, b2.x2);
186 y2 = _min(b1.y2, b2.y2);
187 return (TRUE);
188 }
189};
190
191typedef _rect<float> Frect;

Callers 4

PushScissorMethod · 0.80
DrawMethod · 0.80
TextureClipperMethod · 0.80
GetPointerToMethod · 0.80

Calls 2

_maxFunction · 0.70
_minFunction · 0.70

Tested by

no test coverage detected