| Line | Branch | Decision | Call | Exec | Source |
|---|---|---|---|---|---|
| 1 | #include "Vertex2f.h" | ||||
| 2 | |||||
| 3 | using namespace Chrysalis; | ||||
| 4 | |||||
| 5 | ✗ | Vertex2f::Vertex2f(const float x, const float y): x_(x), y_(y) {} | |||
| 6 | |||||
| 7 | ✗ | Vertex2f::Vertex2f(const Point& point): x_(point.x()), y_(point.y()) {} | |||
| 8 | |||||
| 9 | ✗ | const float& Vertex2f::x() const { | |||
| 10 | ✗ | return x_; | |||
| 11 | } | ||||
| 12 | |||||
| 13 | ✗ | const float& Vertex2f::y() const { | |||
| 14 | ✗ | return y_; | |||
| 15 | } | ||||
| 16 | |||||
| 17 | ✗ | void Vertex2f::move(const Point& point) { | |||
| 18 | ✗ | x_ = point.x(); | |||
| 19 | ✗ | y_ = point.y(); | |||
| 20 | ✗ | } | |||
| 21 | |||||
| 22 | ✗ | void Vertex2f::transform(const Transformation& transformation) { | |||
| 23 | ✗ | const auto point = transformation.apply(CG::Point(x_, y_)); | |||
| 24 | ✗ | x_ = point.x(); | |||
| 25 | ✗ | y_ = point.y(); | |||
| 26 | ✗ | } | |||
| 27 | |||||
| 28 | ✗ | std::vector<std::pair<int, void*>> Vertex2f::layout() { | |||
| 29 | ✗ | return {{2, nullptr}}; | |||
| 30 | } | ||||
| 31 |