OSDN Git Service

[Backup]NyARToolkit for Java
[nyartoolkit-and/nyartoolkit-and.git] / src / jp / nyatla / nyartoolkit / core / types / matrix / NyARDoubleMatrix34.java
1 /* \r
2  * PROJECT: NyARToolkit(Extension)\r
3  * --------------------------------------------------------------------------------\r
4  * The NyARToolkit is Java edition ARToolKit class library.\r
5  * Copyright (C)2008-2009 Ryo Iizuka\r
6  *\r
7  * This program is free software: you can redistribute it and/or modify\r
8  * it under the terms of the GNU General Public License as published by\r
9  * the Free Software Foundation, either version 3 of the License, or\r
10  * (at your option) any later version.\r
11  * \r
12  * This program is distributed in the hope that it will be useful,\r
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
15  * GNU General Public License for more details.\r
16  *\r
17  * You should have received a copy of the GNU General Public License\r
18  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
19  * \r
20  * For further information please contact.\r
21  *      http://nyatla.jp/nyatoolkit/\r
22  *      <airmail(at)ebony.plala.or.jp> or <nyatla(at)nyatla.jp>\r
23  * \r
24  */\r
25 package jp.nyatla.nyartoolkit.core.types.matrix;\r
26 \r
27 public class NyARDoubleMatrix34 implements INyARDoubleMatrix\r
28 {\r
29         public double m00;\r
30         public double m01;\r
31         public double m02;\r
32         public double m03;\r
33         public double m10;\r
34         public double m11;\r
35         public double m12;\r
36         public double m13;\r
37         public double m20;\r
38         public double m21;\r
39         public double m22;\r
40         public double m23;\r
41         public void setValue(double[] i_value)\r
42         {\r
43                 this.m00=i_value[0];\r
44                 this.m01=i_value[1];\r
45                 this.m02=i_value[2];\r
46                 this.m03=i_value[3];\r
47                 this.m10=i_value[4];\r
48                 this.m11=i_value[5];\r
49                 this.m12=i_value[6];\r
50                 this.m13=i_value[7];\r
51                 this.m20=i_value[8];\r
52                 this.m21=i_value[9];\r
53                 this.m22=i_value[10];\r
54                 this.m23=i_value[11];\r
55                 return;\r
56         }\r
57         public void getValue(double[] o_value)\r
58         {\r
59                 o_value[0]=this.m00;\r
60                 o_value[1]=this.m01;\r
61                 o_value[2]=this.m02;\r
62                 o_value[3]=this.m03;\r
63                 o_value[4]=this.m10;\r
64                 o_value[5]=this.m11;\r
65                 o_value[6]=this.m12;\r
66                 o_value[7]=this.m13;\r
67                 o_value[8]=this.m20;\r
68                 o_value[9]=this.m21;\r
69                 o_value[10]=this.m22;\r
70                 o_value[11]=this.m23;\r
71                 return;\r
72         }\r
73 }\r