User Tools

Site Tools


hpl3:community:scripting:classes:cmatrixf

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hpl3:community:scripting:classes:cmatrixf [2016/01/21 21:02]
abion47
hpl3:community:scripting:classes:cmatrixf [2017/10/22 23:50] (current)
abion47 [Constructors]
Line 6: Line 6:
 |cMatrixf() |Creates a matrix with default values. | |cMatrixf() |Creates a matrix with default values. |
 |cMatrixf(cVector4f,​ cVector4f, cVector4f, cVector4f) |Creates a matrix using the given vectors as column data. | |cMatrixf(cVector4f,​ cVector4f, cVector4f, cVector4f) |Creates a matrix using the given vectors as column data. |
-|cMatrixf(float,​ float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) |Creates a matrix using the given values as cell data. **(WarningThis constructor is bugged.)** |+|cMatrixf(float,​ float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) |Creates a matrix using the given values as cell data. 
 + 
 +\\ 
 + 
 +==== Fields ==== 
 + 
 +cMatrixf has no public fields. 
 + 
 +==== Functions ==== 
 + 
 +^Return Type ^Function Name ^Parameters ^Description | 
 +|float |GetElement |uint64, \\ uint64, \\ const |  | 
 +|[[:hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] |GetRight |const |  | 
 +|void |SetRight |const [[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] &in avVec |  | 
 +|[[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] |GetUp |const |  | 
 +|void |SetUp |const [[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] &in avVec |  | 
 +|[[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] |GetForward |const |  | 
 +|void |SetForward |const [[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] &in avVec |  | 
 +|[[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] |GetTranslation |const |  | 
 +|void |SetTranslation |const [[:​hpl3:​community:​scripting:​classes:​cvector3f|cVector3f]] &in avTrans |  | 
 +|void |SetRotation |float afXX, \\ float afXY, \\ float afXZ, \\ float afYX, \\ float afYY, \\ float afYZ, \\ float afZX, \\ float afZY, \\ float afZZ |  | 
 +|void |SetRotation |const [[:​hpl3:​community:​scripting:​classes:​cmatrixf|cMatrixf]] &in a_mtxRot |  | 
 +|[[:​hpl3:​community:​scripting:​classes:​cmatrixf|cMatrixf]] |GetRotation |const |  | 
 +|[[:​hpl3:​community:​scripting:​classes:​cmatrixf|cMatrixf]] |GetTranspose |const |  | 
 + 
 +\\ 
 + 
 +==== Constructors ==== 
 + 
 +^Constructor ^Description | 
 +|cMatrixf() |Creates a matrix with default values
 +|cMatrixf(cVector4f,​ cVector4f, cVector4f, cVector4f|Creates a matrix using the given vectors as column data. | 
 +|cMatrixf(float,​ float, float, float, float, float, float, float, float, float, float, float, float, float, float, float) |Creates a matrix using the given values as cell data. |
  
 ==== Fields ==== ==== Fields ====
Line 42: Line 74:
 // value of f: 9</​code>​ // value of f: 9</​code>​
  
-To do matrix computations,​ use the cMath_MatrixXXX ​line of functions ​in the hpl_api.hps file.+To do matrix computations,​ use the [[hpl3:​game:​scripting:​function_reference:​hps_api#​cmath_matrixslerp|cMath_MatrixXXX]] family ​of functions.
  
 <​code=c++>​cMatrixf m1(cVector4f(1,​ 1, 1, 1),  <​code=c++>​cMatrixf m1(cVector4f(1,​ 1, 1, 1), 
hpl3/community/scripting/classes/cmatrixf.1453410179.txt.gz · Last modified: 2016/01/21 21:02 by abion47