Chrysalis - Renderer
Loading...
Searching...
No Matches
Vertex2f.h
Go to the documentation of this file.
1#ifndef CHRYSALIS_VERTEX2F_H
2#define CHRYSALIS_VERTEX2F_H
3
4#include <vector>
5
6#include "Point.h"
7#include "Transformation.h"
8
9namespace Chrysalis {
10 class Vertex2f {
11 public:
12 explicit Vertex2f(float x, float y);
13 explicit Vertex2f(const Point& point);
14
15 const float& x() const;
16 const float& y() const;
17
18 void move(const Point& point);
19 void transform(const Transformation& transformation);
20
21 static std::vector<std::pair<int, void*>> layout();
22 private:
23 float x_;
24 float y_;
25 };
26}
27
28#endif //CHRYSALIS_VERTEX2F_H
Vertex2f(float x, float y)
Definition Vertex2f.cpp:5
const float & y() const
Definition Vertex2f.cpp:13
static std::vector< std::pair< int, void * > > layout()
Definition Vertex2f.cpp:28
void move(const Point &point)
Definition Vertex2f.cpp:17
void transform(const Transformation &transformation)
Definition Vertex2f.cpp:22
const float & x() const
Definition Vertex2f.cpp:9
Definition Area.h:4