Adicionando headers de lua
[Projeto-PCG.git] / geometry.h
blobc8f94df0ef32f3cf671694bb76934be73a0a30f0
1 #ifndef GEOMETRIA_H
2 #define GEOMETRIA_H
3 #include "SDL/SDL.h"
4 #include "SDL/SDL_opengl.h"
6 struct Ponto {
7 double x,y;
8 };
10 struct Vetor {
11 double x,y;
14 class Linha {
15 private:
16 Ponto vertices[2];
17 public:
18 void desenha();
19 Linha(double x1,double y1,double x2, double y2);
20 Linha(Ponto a, Ponto b) {vertices[0] = a; vertices[1] = b;}
23 void drawCircle(double radius, int lines);
25 #endif