Segment.hpp
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <etk/types.hpp>
9 #include <etk/math/Vector2D.hpp>
10 #include <etk/math/Matrix2.hpp>
11 
12 namespace esvg {
13  namespace render {
14  class Segment {
15  public:
16  Segment(const vec2& _p0, const vec2& _p1);
17  vec2 p0;
18  vec2 p1;
19  int32_t direction;
20  void applyMatrix(const mat2& _transformationMatrix);
21  void createDirection();
22  };
23  }
24 }
25 
Main esvg namespace.
Definition: Base.hpp:24
Definition: Segment.hpp:14