差分発生行の前後
無視リスト:
コミット日時:
2010/01/23 23:56:15 (2 年前)
コミッタ:
rokubou
ログメッセージ:

version 2.5.0

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/FLARToolKit/trunk/src/org/libspark/flartoolkit/core/transmat/FLARTransMatResult.as

    r1630 r3336  
    99 * Copyright (C)2008 Saqoosha 
    1010 * 
    11  * This program is free software; you can redistribute it and/or 
    12  * modify it under the terms of the GNU General Public License 
    13  * as published by the Free Software Foundation; either version 2 
    14  * of the License, or (at your option) any later version. 
     11 * This program is free software: you can redistribute it and/or modify 
     12 * it under the terms of the GNU General Public License as published by 
     13 * the Free Software Foundation, either version 3 of the License, or 
     14 * (at your option) any later version. 
    1515 *  
    1616 * This program is distributed in the hope that it will be useful, 
     
    1818 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1919 * GNU General Public License for more details. 
    20  *  
     20 * 
    2121 * You should have received a copy of the GNU General Public License 
    22  * along with this framework; if not, write to the Free Software 
    23  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
     22 * along with this program.  If not, see <http://www.gnu.org/licenses/>. 
    2423 *  
    2524 * For further information please contact. 
     
    2827 *  
    2928 */ 
     29package org.libspark.flartoolkit.core.transmat  
     30{ 
     31        import jp.nyatla.nyartoolkit.as3.core.transmat.*; 
     32         
     33        public class FLARTransMatResult extends NyARTransMatResult 
     34        { 
     35                 
     36                public function FLARTransMatResult()  
     37                { 
     38                        super(); 
     39                } 
     40                 
     41        } 
    3042 
    31 package org.libspark.flartoolkit.core.transmat { 
    32         import org.libspark.flartoolkit.core.transmat.rotmatrix.FLARRotMatrix; 
    33         import org.libspark.flartoolkit.core.types.FLARDoublePoint3d; 
    34         import org.libspark.flartoolkit.core.types.matrix.FLARDoubleMatrix34;            
    35  
    36         /** 
    37          * FLARTransMat戻り値専用のFLARMat 
    38          *  
    39          */ 
    40         public class FLARTransMatResult extends FLARDoubleMatrix34 { 
    41  
    42                 private var has_value:Boolean = false; 
    43  
    44                  
    45                 /** 
    46                  * パラメータで変換行列を更新します。 
    47                  *  
    48                  * @param i_rot 
    49                  * @param i_off 
    50                  * @param i_trans 
    51                  */ 
    52                 public function updateMatrixValue(i_rot:FLARRotMatrix, i_off:FLARDoublePoint3d, i_trans:FLARDoublePoint3d):void { 
    53                         this.m00 = i_rot.m00; 
    54                         this.m01 = i_rot.m01; 
    55                         this.m02 = i_rot.m02; 
    56                         this.m03 = i_rot.m00 * i_off.x + i_rot.m01 * i_off.y + i_rot.m02 * i_off.z + i_trans.x; 
    57  
    58                         this.m10 = i_rot.m10; 
    59                         this.m11 = i_rot.m11; 
    60                         this.m12 = i_rot.m12; 
    61                         this.m13 = i_rot.m10 * i_off.x + i_rot.m11 * i_off.y + i_rot.m12 * i_off.z + i_trans.y; 
    62  
    63                         this.m20 = i_rot.m20; 
    64                         this.m21 = i_rot.m21; 
    65                         this.m22 = i_rot.m22; 
    66                         this.m23 = i_rot.m20 * i_off.x + i_rot.m21 * i_off.y + i_rot.m22 * i_off.z + i_trans.z; 
    67  
    68                         this.has_value = true; 
    69                         return; 
    70                 } 
    71  
    72                 public function hasValue():Boolean { 
    73                         return this.has_value; 
    74                 } 
    75         } 
    7643}