MCPcopy Create free account
hub / github.com/Fields2Cover/Fields2Cover / Field

Method Field

src/fields2cover/types/Field.cpp:13–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12Field::Field() = default;
13Field::Field(const Cells& cells, const std::string& id_p) : id_(id_p) {
14 if (!cells.isEmpty()) {
15 this->ref_point_ = cells.getCellBorder(0).startPoint();
16 }
17 this->field_ = cells - this->ref_point_;
18}
19
20Field::~Field() = default;
21Field::Field(const Field&) = default;

Calls 3

getCellBorderMethod · 0.80
isEmptyMethod · 0.45
startPointMethod · 0.45