comparison game/IDMPoint.java @ 162:e8eeac403e5f

Backed out changeset fb33d3796942
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 01 Dec 2016 14:33:25 +0200
parents src/IDMPoint.java@fb33d3796942
children
comparison
equal deleted inserted replaced
161:fb33d3796942 162:e8eeac403e5f
1 /*
2 * Ristipolku IDM point
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
4 */
5 package game;
6
7 public class IDMPoint
8 {
9 public float x, y;
10
11 public IDMPoint(float x, float y)
12 {
13 this.x = x;
14 this.y = y;
15 }
16
17 public IDMPoint(IDMPoint pt)
18 {
19 this.x = pt.x;
20 this.y = pt.y;
21 }
22
23 public IDMPoint copy()
24 {
25 return new IDMPoint(x, y);
26 }
27 }