repo.or.cz
/
asgard.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
(no commit message)
[asgard.git]
/
Coordinate.cpp
blob
37fd36c281be9ca65cfba338828eb4380ac0e262
1
#include
"Coordinate.h"
2
3
Coordinate
::
Coordinate
()
4
{
5
//Initialize to zero
6
this
->
x
=
0
;
7
this
->
y
=
0
;
8
}
9
10
Coordinate
::
Coordinate
(
int
x
,
int
y
)
11
{
12
this
->
x
=
x
;
13
this
->
y
=
y
;
14
}
15
16
int
Coordinate
::
getX
()
17
{
18
return this
->
x
;
19
}
20
21
int
Coordinate
::
getY
()
22
{
23
return this
->
y
;
24
}
25
26
void
Coordinate
::
setX
(
int
x
)
27
{
28
this
->
x
=
x
;
29
}
30
31
void
Coordinate
::
setY
(
int
y
)
32
{
33
this
->
y
=
y
;
34
}
35