annotate src/alice/test/topology/aquarium/FishPoint.java @ 134:53aff28cde6b working

change package
author sugi
date Wed, 15 Aug 2012 17:11:57 +0900
parents src/alice/test/topology/fishmodel/alpha/FishPoint.java@7dbaaa0de144
children 0651fb36a369
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
134
53aff28cde6b change package
sugi
parents: 114
diff changeset
1 package alice.test.topology.aquarium;
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
2
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
3 import org.msgpack.annotation.Message;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
4
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
5 @Message
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
6 public class FishPoint {
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
7 // public fields are serialized.
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
8 public float x = 0.0f;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
9 public float y = 0.0f;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
10 public float z = 0.0f;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
11 public String vector = "light";
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
12
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
13 public FishPoint(){}
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
14
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
15 public FishPoint(float x,float y){
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
16 this.x = x;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
17 this.y = y;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
18 }
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
19
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
20 public FishPoint(float x,float y,float z){
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
21 this.x = x;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
22 this.y = y;
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
23 this.z = z;
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
24 }
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
25
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
26 public void setXY(float x,float y){
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
27 this.x = x;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
28 this.y = y;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
29 }
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
30
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
31 public void setXYZ(float x,float y,float z){
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
32 this.x = x;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
33 this.y = y;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
34 this.z = z;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
35 }
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
36
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
37 public float getX(){
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
38 return this.x;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
39 }
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
40
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
41 public float getY(){
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
42 return this.y;
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
43 }
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
44
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
45 public float getZ(){
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
46 return this.z;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
47 }
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
48
114
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
49 public String getVector(){
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
50 return this.vector;
7dbaaa0de144 remove vector3f and add Matrix4d
sugi
parents: 107
diff changeset
51 }
97
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
52
df786bf8f036 add FishPoint.java and Test
sugi
parents:
diff changeset
53 }