Packagejp.nyatla.nyartoolkit.as3.core.transmat
Classpublic class NyARTransMat
InheritanceNyARTransMat Inheritance Object
Implements INyARTransMat

This class calculates ARMatrix from square information and holds it. -- 変換行列を計算して、結果を保持するクラス。



Protected Properties
 PropertyDefined By
  _mat_optimize : NyARPartialDifferentiationOptimize
NyARTransMat
  _rotmatrix : NyARRotMatrix
NyARTransMat
  _transsolver : INyARTransportVectorSolver
NyARTransMat
Public Methods
 MethodDefined By
  
NyARTransMat
  
errRate(io_rot:NyARDoubleMatrix33, i_trans:NyARDoublePoint3d, i_vertex3d:Vector.<NyARDoublePoint3d>, i_vertex2d:Vector.<NyARDoublePoint2d>, i_number_of_vertex:int, o_rot_vertex:Vector.<NyARDoublePoint3d>):Number
NyARTransMat
  
transMat(i_square:NyARSquare, i_offset:NyARRectOffset, o_result_conv:NyARTransMatResult):void
double arGetTransMat( ARMarkerInfo arker_info,double center[2], double width, double conv[3][4] )
NyARTransMat
  
transMatContinue(i_square:NyARSquare, i_offset:NyARRectOffset, o_result_conv:NyARTransMatResult):void
NyARTransMat
  
パラメータで変換行列を更新します。
NyARTransMat
Property Detail
_mat_optimizeproperty
protected var _mat_optimize:NyARPartialDifferentiationOptimize

_rotmatrixproperty 
protected var _rotmatrix:NyARRotMatrix

_transsolverproperty 
protected var _transsolver:INyARTransportVectorSolver

Constructor Detail
NyARTransMat()Constructor
public function NyARTransMat(i_param:NyARParam)



Parameters
i_param:NyARParam
Method Detail
errRate()method
public function errRate(io_rot:NyARDoubleMatrix33, i_trans:NyARDoublePoint3d, i_vertex3d:Vector.<NyARDoublePoint3d>, i_vertex2d:Vector.<NyARDoublePoint2d>, i_number_of_vertex:int, o_rot_vertex:Vector.<NyARDoublePoint3d>):Number

Parameters

io_rot:NyARDoubleMatrix33
 
i_trans:NyARDoublePoint3d
 
i_vertex3d:Vector.<NyARDoublePoint3d>
 
i_vertex2d:Vector.<NyARDoublePoint2d>
 
i_number_of_vertex:int
 
o_rot_vertex:Vector.<NyARDoublePoint3d>

Returns
Number
transMat()method 
public function transMat(i_square:NyARSquare, i_offset:NyARRectOffset, o_result_conv:NyARTransMatResult):void

double arGetTransMat( ARMarkerInfo arker_info,double center[2], double width, double conv[3][4] )

Parameters

i_square:NyARSquare — 計算対象のNyARSquareオブジェクト
 
i_offset:NyARRectOffset
 
o_result_conv:NyARTransMatResult


Throws
NyARException
transMatContinue()method 
public function transMatContinue(i_square:NyARSquare, i_offset:NyARRectOffset, o_result_conv:NyARTransMatResult):void

Parameters

i_square:NyARSquare
 
i_offset:NyARRectOffset
 
o_result_conv:NyARTransMatResult

updateMatrixValue()method 
public function updateMatrixValue(i_rot:NyARRotMatrix, i_trans:NyARDoublePoint3d, o_result:NyARTransMatResult):void

パラメータで変換行列を更新します。

Parameters

i_rot:NyARRotMatrix
 
i_trans:NyARDoublePoint3d
 
o_result:NyARTransMatResult