-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAABB.cs
More file actions
54 lines (46 loc) · 1.1 KB
/
AABB.cs
File metadata and controls
54 lines (46 loc) · 1.1 KB
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
49
50
51
52
53
54
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
namespace ImagineCup2012
{
public class AABB
{
private Vector2 position;
private Vector2 oldPosition;
private float width;
private float height;
public AABB(Vector2 position, float width, float height)
{
this.oldPosition = new Vector2(0, 0);
this.position = position;
this.width = width;
this.height = height;
}
public Vector2 getPosition()
{
return position;
}
public Vector2 getOldPosition()
{
return oldPosition;
}
public float getWidth()
{
return width;
}
public float getHeight()
{
return height;
}
public void setPosition(Vector2 position)
{
this.position = position;
}
public void setOldPosition(Vector2 oldPosition)
{
this.oldPosition = oldPosition;
}
}
}