-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnvelope.h
48 lines (39 loc) · 848 Bytes
/
Envelope.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// Envelope.hpp
// OpenGLTest
//
// Created by Márcio Sarroglia Pinho on 28/08/22.
// Copyright © 2022 Márcio Sarroglia Pinho. All rights reserved.
//
#ifndef Envelope_hpp
#define Envelope_hpp
#include <iostream>
using namespace std;
#ifdef WIN32
#include <windows.h>
#include <glut.h>
#endif
#ifdef __APPLE__
#include <GLUT/glut.h>
#endif
#ifdef __linux__
#include <glut.h>
#endif
#include "Ponto.h"
class Envelope
{
Ponto Meio, MeiaLargura;
public:
Ponto Min,Max; // envelope
Ponto getMeio();
Envelope();
Envelope(Ponto P1, Ponto P2);
bool temColisao(Envelope E);
void GeraEnvelope(Ponto P1, Ponto P2); //
void AtualizaEnvelope();
bool pontoEstaDentro(Ponto P);
void imprime();
void Desenha();
bool envelopeCruzaLinhaHorizontal(Ponto p, Envelope e);
};
#endif /* Envelope_hpp */