Chrysalis - Pattern
Toggle main menu visibility
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
7
namespace
Chrysalis
{
8
class
Transformation
{
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
CGAL.h
Point.h
Chrysalis::Point
Definition
Point.h:9
Chrysalis::Transformation::apply
CG::Point apply(CG::Point point) const
Definition
Transformation.cpp:8
Chrysalis::Transformation::Transformation
Transformation()=default
Chrysalis::CG::Vector
CGAL::Vector_2< LinearKernel > Vector
Definition
CGAL.h:25
Chrysalis::CG::Point
CGAL::Point_2< LinearKernel > Point
Definition
CGAL.h:24
Chrysalis
Definition
Argument.h:9
pattern
include
Transformation.h
Generated by
1.17.0