Mercurial > hg > ristipolku
comparison game/IDMPoint.java @ 79:83a79d1698c8
Method for creating a copy of a point.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 03 Mar 2011 04:56:34 +0200 |
parents | 8c81a3e73a2b |
children | c4d0ceec99ef |
comparison
equal
deleted
inserted
replaced
78:ef523a3cebf3 | 79:83a79d1698c8 |
---|---|
11 public IDMPoint(float x, float y) | 11 public IDMPoint(float x, float y) |
12 { | 12 { |
13 this.x = x; | 13 this.x = x; |
14 this.y = y; | 14 this.y = y; |
15 } | 15 } |
16 | |
17 public IDMPoint copy() | |
18 { | |
19 return new IDMPoint(x, y); | |
20 } | |
16 } | 21 } |