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
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
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
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
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
25 package jp.nyatla.nyartoolkit.core.types.matrix;
\r
27 public class NyARDoubleMatrix34 implements INyARDoubleMatrix
\r
54 * この関数は、要素数12の配列を、行列にセットします。
\r
56 public void setValue(double[] i_value)
\r
58 this.m00=i_value[0];
\r
59 this.m01=i_value[1];
\r
60 this.m02=i_value[2];
\r
61 this.m03=i_value[3];
\r
62 this.m10=i_value[4];
\r
63 this.m11=i_value[5];
\r
64 this.m12=i_value[6];
\r
65 this.m13=i_value[7];
\r
66 this.m20=i_value[8];
\r
67 this.m21=i_value[9];
\r
68 this.m22=i_value[10];
\r
69 this.m23=i_value[11];
\r
73 * この関数は、オブジェクトの内容をインスタンスにコピーします。
\r
77 public void setValue(NyARDoubleMatrix34 i_value)
\r
79 this.m00=i_value.m00;
\r
80 this.m01=i_value.m01;
\r
81 this.m02=i_value.m02;
\r
82 this.m03=i_value.m03;
\r
83 this.m10=i_value.m10;
\r
84 this.m11=i_value.m11;
\r
85 this.m12=i_value.m12;
\r
86 this.m13=i_value.m13;
\r
87 this.m20=i_value.m20;
\r
88 this.m21=i_value.m21;
\r
89 this.m22=i_value.m22;
\r
90 this.m23=i_value.m23;
\r
94 * この関数は、要素数12の配列に、行列の内容をコピーします。
\r
96 public void getValue(double[] o_value)
\r
98 o_value[0]=this.m00;
\r
99 o_value[1]=this.m01;
\r
100 o_value[2]=this.m02;
\r
101 o_value[3]=this.m03;
\r
102 o_value[4]=this.m10;
\r
103 o_value[5]=this.m11;
\r
104 o_value[6]=this.m12;
\r
105 o_value[7]=this.m13;
\r
106 o_value[8]=this.m20;
\r
107 o_value[9]=this.m21;
\r
108 o_value[10]=this.m22;
\r
109 o_value[11]=this.m23;
\r