→ home
 
→ index of namespace default
 
→ index of project tkmath
 
→ index of module tkmath

Class tkmath.Matrix3f


Synopsis: This class represents a single precision 3x3 square matrix.

  Base classes:
  Methods:
Method add
Add another matrix m to this instance
Signature
add(Matrix3fm)
Arguments
Matrix3fm–matrix to add

 
→ top of page
Method det
Calculate determinant of matrix
Signature
det():float
Returns
float–value of determinant

 
→ top of page
Method getA
Get value of a element
Signature
getA():float
Returns
float–value of a element

 
→ top of page
Method getAbs
Calculate the Hilbert-Schmidt norm of the matrix
Signature
getAbs():float
Returns
float–scalar matrix norm value

 
→ top of page
Method getAbsSqr
Calculate the squared Hilbert-Schmidt norm of the matrix
Signature
getAbsSqr():float
Returns
float–scalar matrix norm value

 
→ top of page
Method getB
Get value of b element
Signature
getB():float
Returns
float–value of b element

 
→ top of page
Method getC
Get value of c element
Signature
getC():float
Returns
float–value of c element

 
→ top of page
Method getCol
Get column c values
Signature
getCol(intc)
 :Vector3f
Arguments
intc–column number
Returns
Vector3f–vector with values from column c

 
→ top of page
Method getD
Get value of d element
Signature
getD():float
Returns
float–value of d element

 
→ top of page
Method getE
Get value of e element
Signature
getE():float
Returns
float–value of e element

 
→ top of page
Method getF
Get value of f element
Signature
getF():float
Returns
float–value of f element

 
→ top of page
Method getG
Get value of g element
Signature
getG():float
Returns
float–value of g element

 
→ top of page
Method getH
Get value of h element
Signature
getH():float
Returns
float–value of h element

 
→ top of page
Method getI
Get value of i element
Signature
getI():float
Returns
float–value of i element

 
→ top of page
Method getRow
Get row r values
Signature
getRow(intr)
 :Vector3f
Arguments
intr–row number
Returns
Vector3f–vector with values from row r

 
→ top of page
Method getString
Get string representation of matrix ((a, b, c), (d, e, f), (g, h, i))
Signature
getString():String
Returns
String–string representation of matrix

 
→ top of page
Method init
Initialise matrix
Signature
init(floatva,
  floatvb,
  floatvc,
  floatvd,
  floatve,
  floatvf,
  floatvg,
  floatvh,
  floatvi 
  )  
Arguments
floatva–value for a
floatvb–value for b
floatvc–value for c
floatvd–value for d
floatve–value for e
floatvf–value for f
floatvg–value for g
floatvh–value for h
floatvi–value for i

 
→ top of page
Method initCol
Initialise column c of matrix
Signature
initCol(intc,
  floatva,
  floatvb,
  floatvc 
  )  
Arguments
intc–column number
floatva–value for first element
floatvb–value for second element
floatvc–value for third element

 
→ top of page
Method initColV
Initialise column c of matrix
Signature
initColV(intc,
  Vector3fv 
  )  
Arguments
intc–column number
Vector3fv–vector with values

 
→ top of page
Method initIdentity
Initialize with identity matrix.
Signature
initIdentity()

 
→ top of page
Method initRow
Initialise row r of matrix
Signature
initRow(intr,
  floatva,
  floatvb,
  floatvc 
  )  
Arguments
intr–row number
floatva–value for first element
floatvb–value for second element
floatvc–value for third element

 
→ top of page
Method initRowV
Initialise row r of matrix
Signature
initRowV(intr,
  Vector3fv 
  )  
Arguments
intr–row number
Vector3fv–vector with values

 
→ top of page
Method invert
Calculate inversion of matrix, so that A*A-1=U
Signature
invert()

 
→ top of page
Method mul
Multiply this instance with matrix m
Signature
mul(Matrix3fm)
Arguments
Matrix3fm–matrix to multiply

 
→ top of page
Method mulf
Multiply this instance with scalar value v
Signature
mulf(floatv)
Arguments
floatv–value to multiply

 
→ top of page
Method mulv
Multiply this instance with a 3dim vector
Signature
mulv(Vector3fv)
 :Vector3f
Arguments
Vector3fv–vector to multiply
Returns
Vector3f–resulting vector

 
→ top of page
Method New
Initialise and return new instance of Matrix3f
Signature
New(floatva,
  floatvb,
  floatvc,
  floatvd,
  floatve,
  floatvf,
  floatvg,
  floatvh,
  floatvi 
  )  
 :Matrix3f
Arguments
floatva–value for a
floatvb–value for b
floatvc–value for c
floatvd–value for d
floatve–value for e
floatvf–value for f
floatvg–value for g
floatvh–value for h
floatvi–value for i
Returns
Matrix3f–new instance of Matrix3f

 
→ top of page
Method setA
Set a element to v
Signature
setA(floatv)
Arguments
floatv–new value for a

 
→ top of page
Method setB
Set b element to v
Signature
setB(floatv)
Arguments
floatv–new value for b

 
→ top of page
Method setC
Set c element to v
Signature
setC(floatv)
Arguments
floatv–new value for c

 
→ top of page
Method setCol
Set column c with values from v
Signature
setCol(intc,
  Vector3fv 
  )  
Arguments
intc–column number
Vector3fv–Vector3f instance

 
→ top of page
Method setD
Set d element to v
Signature
setD(floatv)
Arguments
floatv–new value for d

 
→ top of page
Method setE
Set e element to v
Signature
setE(floatv)
Arguments
floatv–new value for e

 
→ top of page
Method setF
Set f element to v
Signature
setF(floatv)
Arguments
floatv–new value for f

 
→ top of page
Method setG
Set g element to v
Signature
setG(floatv)
Arguments
floatv–new value for g

 
→ top of page
Method setH
Set h element to v
Signature
setH(floatv)
Arguments
floatv–new value for h

 
→ top of page
Method setI
Set i element to v
Signature
setI(floatv)
Arguments
floatv–new value for i

 
→ top of page
Method setRow
Set row r with values from v
Signature
setRow(intr,
  Vector3fv 
  )  
Arguments
intr–row number
Vector3fv–Vector3f instance

 
→ top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix3fm)
Arguments
Matrix3fm–matrix to substract

 
→ top of page
Method transpose
Transpose matrix
Signature
transpose()

 
→ top of page
Method unit
Normalise matrix with Hilbert-Schmidt norm
Signature
unit()

 
→ top of page
Method unitScale
Normalise matrix with Hilbert-Schmidt norm and multiply with v afterwards
Signature
unitScale(floatv)
Arguments
floatv–value to scale matrix

 
→ top of page
 

Project Modules:tkmath 
Project Classes:Complexd , Complexf , Math , Matrix , Matrix2d , Matrix2f , Matrix3d , Matrix3f , Matrix4d , Matrix4f , Quaterniond , Quaternionf , Vector2d , Vector2f , Vector3d , Vector3f , Vector4d , Vector4f 
Project Functions:absd , absf , acoscd , acoscf , acosd , acosf , acoshcd , acoshcf , acoshd , acoshf , asincd , asincf , asind , asinf , asinhcd , asinhcf , asinhd , asinhf , atan2d , atan2f , atancd , atancf , atand , atanf , atanhcd , atanhcf , atanhd , atanhf , ceild , ceilf , complexd , complexf , complexfPolar , complexfPolar , coscd , coscf , cosd , cosf , coshcd , coshcf , coshd , coshf , exp10d , exp10f , exp2d , exp2f , expcd , expcf , expd , expf , floord , floorf , hypotd , hypotf , log10d , log10f , log2d , log2f , logcd , logcf , logd , logf , matrix2d , matrix2f , matrix3d , matrix3f , matrix4d , matrix4f , modd , modf , powcd , powcf , powd , powf , quaterniond , quaternionf , relCmpd , relCmpf , relErrCmpd , relErrCmpf , roundd , roundf , sincd , sincf , sind , sinf , sinhcd , sinhcf , sinhd , sinhf , sqrtcd , sqrtcf , sqrtd , sqrtf , tancf , tancf , tand , tanf , tanhcd , tanhcf , tanhd , tanhf , vector2d , vector2f , vector3d , vector3f , vector4d , vector4f 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54