-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPVector.h
More file actions
40 lines (29 loc) · 708 Bytes
/
PVector.h
File metadata and controls
40 lines (29 loc) · 708 Bytes
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
#pragma once
class PVector{
public:
PVector(float sizex, float sizey);
~PVector(void);
void setXY(float nx, float ny);
void setSizeXY(float nx, float ny);
void setSizeY(float ny);
void setSizeX(float nx);
float getX(void);
float getY(void);
float getSizeX(void);
float getSizeY(void);
float getAuxx(void);
float getAuxy(void);
void addSum(float tx, float ty);
void addSum2(float tx, float ty);
void rotate(float angle);
float getAngle(float vx, float vy);
float getNorma(void);
float getUnitarioX(void);
float getUnitarioY(void);
private:
float x, y;
float auxx;
float auxy;
float sizex;
float sizey;
};