Chrysalis - Pattern
Loading...
Searching...
No Matches
Transformation.h
Go to the documentation of this file.
1#ifndef CHRYSALIS_TRANSFORMATION_H
2#define CHRYSALIS_TRANSFORMATION_H
3
4#include "CGAL.h"
5#include "Point.h"
6
7namespace Chrysalis {
9 public:
10 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 CG::Vector translation_ {0, 0};
17 double angle_ = 0;
18 };
19}
20
21#endif //CHRYSALIS_TRANSFORMATION_H
Definition Point.h:9
CG::Point apply(CG::Point point) const
Definition Transformation.cpp:8
CGAL::Vector_2< LinearKernel > Vector
Definition CGAL.h:25
CGAL::Point_2< LinearKernel > Point
Definition CGAL.h:24
Definition Argument.h:9