MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / size

Method size

library/rect.h:43–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41 bool operator!=(const Rect<T> &other) const { return !(*this == other); }
42
43 Vec2<T> size() const { return Vec2<T>{p1.x - p0.x, p1.y - p0.y}; }
44
45 // Something of an arbitrary order for storing in a set
46 bool operator<(const Rect<T> &other) const

Callers 15

operator<Method · 0.95
do_put_tmMethod · 0.45
startGameMethod · 0.45
logEventMethod · 0.45
operator==Function · 0.45
serializeInFunction · 0.45
serializeOutFunction · 0.45
drawMethod · 0.45
findLosBlockPathMethod · 0.45
groupMoveMethod · 0.45

Calls

no outgoing calls

Tested by 2

testMethod · 0.36
test_one_rect_compactionFunction · 0.36