| Line |
Branch |
Decision |
Call |
Exec |
Source |
| 1 |
|
|
|
|
#ifndef CHRYSALIS_TRANSFORMATION_H |
| 2 |
|
|
|
|
#define CHRYSALIS_TRANSFORMATION_H |
| 3 |
|
|
|
|
|
| 4 |
|
|
|
|
#include "CGAL.h" |
| 5 |
|
|
|
|
#include "Point.h" |
| 6 |
|
|
|
|
|
| 7 |
|
|
|
|
namespace Chrysalis { |
| 8 |
|
|
|
|
class Transformation { |
| 9 |
|
|
|
|
public: |
| 10 |
|
|
6/6
✓ Call 0 invoked.
✓ Call 1 invoked.
✓ Call 2 invoked.
✓ Call 3 invoked.
✓ Call 4 invoked.
✓ Call 5 invoked.
|
36 |
explicit Transformation() = default; |
| 11 |
|
|
|
|
explicit Transformation(const Point* origin, CG::Vector translation, double angle); |
| 12 |
|
|
|
|
|
| 13 |
|
|
|
|
CG::Point apply(CG::Point point) const; |
| 14 |
|
|
|
|
private: |
| 15 |
|
|
|
|
const Point* origin_ = nullptr; |
| 16 |
|
|
2/2
✓ Call 0 invoked.
✓ Call 1 invoked.
|
18 |
CG::Vector translation_ {0, 0}; |
| 17 |
|
|
|
|
double angle_ = 0; |
| 18 |
|
|
|
|
}; |
| 19 |
|
|
|
|
} |
| 20 |
|
|
|
|
|
| 21 |
|
|
|
|
#endif //CHRYSALIS_TRANSFORMATION_H |
| 22 |
|
|
|
|
|