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

Class tkmath.Matrix4d


SynopsisThis class represents a double precision 4x4 square matrix.

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

 
 top of page
Method BuildEulerXYX4d
Build an euler rotation matrix with XYX convention
Signature
BuildEulerXYX4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerXYZ4d
Build an euler rotation matrix with XYZ convention
Signature
BuildEulerXYZ4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerXZX4d
Build an euler rotation matrix with XZX convention
Signature
BuildEulerXZX4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerXZY4d
Build an euler rotation matrix with XZY convention
Signature
BuildEulerXZY4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerYXY4d
Build an euler rotation matrix with YXY convention
Signature
BuildEulerYXY4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerYXZ4d
Build an euler rotation matrix with YXZ convention
Signature
BuildEulerYXZ4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerYZX4d
Build an euler rotation matrix with YZX convention
Signature
BuildEulerYZX4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerYZY4d
Build an euler rotation matrix with YZY convention
Signature
BuildEulerYZY4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerZXY4d
Build an euler rotation matrix with ZXY convention
Signature
BuildEulerZXY4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerZXZ4d
Build an euler rotation matrix with ZXZ convention
Signature
BuildEulerZXZ4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerZYX4d
Build an euler rotation matrix with ZYX convention
Signature
BuildEulerZYX4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildEulerZYZ4d
Build an euler rotation matrix with ZYZ convention
Signature
BuildEulerZYZ4d(Doublea,
  Doubleb,
  Doublec 
  )  
 :Matrix4d
Arguments
Doubleafirst angle in radians
Doublebsecond angle in radians
Doublecthird angle in radians
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildLookAtMatrix4d
Build a look at matrix
Signature
BuildLookAtMatrix4d(Vector3deye,
  Vector3dcenter,
  Vector3dup 
  )  
 :Matrix4d
Arguments
Vector3deyeeye direction vector
Vector3dcentercenter of camera vector
Vector3dupvector for up direction
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildPerspectiveMatrix4d
Builds a perspective matrix
Signature
BuildPerspectiveMatrix4d(Doublefov,
  Doubleaspect,
  DoublezNear,
  DoublezFar 
  )  
 :Matrix4d
Arguments
Doublefovfield of view in degrees
Doubleaspectaspect ratio
DoublezNearzNear value
DoublezFarzFar value
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildRotateMatrix4d
Build a rotation matrix
Signature
BuildRotateMatrix4d(Doubleangle,
  Vector3daxis 
  )  
 :Matrix4d
Arguments
Doubleanglerotation angle
Vector3daxisrotation axis
Returns
Matrix4dgenerated matrix

 
 top of page
Method BuildTranslateMatrix4d
Build a translation matrix
Signature
BuildTranslateMatrix4d(Vector3dmove)
 :Matrix4d
Arguments
Vector3dmovemovement vector
Returns
Matrix4dgenerated matrix

 
 top of page
Method det
Calculate determinant of matrix
Signature
det():Double
Returns
Doublevalue of determinant

 
 top of page
Method getA
Get value of a element
Signature
getA():Double
Returns
Doublevalue of a element

 
 top of page
Method getAbs
Calculate the Hilbert-Schmidt norm of the matrix
Signature
getAbs():Double
Returns
Doublescalar matrix norm value

 
 top of page
Method getAbsSqr
Calculate the squared Hilbert-Schmidt norm of the matrix
Signature
getAbsSqr():Double
Returns
Doublescalar matrix norm value

 
 top of page
Method getB
Get value of b element
Signature
getB():Double
Returns
Doublevalue of b element

 
 top of page
Method getC
Get value of c element
Signature
getC():Double
Returns
Doublevalue of c element

 
 top of page
Method getCol
Get column c values
Signature
getCol(intc)
 :Vector4d
Arguments
intccolumn number
Returns
Vector4dvector with values from column c

 
 top of page
Method getD
Get value of d element
Signature
getD():Double
Returns
Doublevalue of d element

 
 top of page
Method getE
Get value of e element
Signature
getE():Double
Returns
Doublevalue of e element

 
 top of page
Method getF
Get value of f element
Signature
getF():Double
Returns
Doublevalue of f element

 
 top of page
Method getG
Get value of g element
Signature
getG():Double
Returns
Doublevalue of g element

 
 top of page
Method getH
Get value of h element
Signature
getH():Double
Returns
Doublevalue of h element

 
 top of page
Method getI
Get value of i element
Signature
getI():Double
Returns
Doublevalue of i element

 
 top of page
Method getJ
Get value of j element
Signature
getJ():Double
Returns
Doublevalue of j element

 
 top of page
Method getK
Get value of k element
Signature
getK():Double
Returns
Doublevalue of k element

 
 top of page
Method getL
Get value of l element
Signature
getL():Double
Returns
Doublevalue of l element

 
 top of page
Method getM
Get value of m element
Signature
getM():Double
Returns
Doublevalue of m element

 
 top of page
Method getN
Get value of n element
Signature
getN():Double
Returns
Doublevalue of n element

 
 top of page
Method getO
Get value of o element
Signature
getO():Double
Returns
Doublevalue of o element

 
 top of page
Method getP
Get value of p element
Signature
getP():Double
Returns
Doublevalue of p element

 
 top of page
Method getRow
Get row r values
Signature
getRow(intr)
 :Vector4d
Arguments
intrrow number
Returns
Vector4dvector with values from row r

 
 top of page
Method getString
Get string representation of matrix ((a, b, c, d), (e, f, g, h), (i, j, k, l), (m, n, o, p))
Signature
getString():String
Returns
Stringstring representation of matrix

 
 top of page
Method init
Initialise matrix
Signature
init(Doubleva,
  Doublevb,
  Doublevc,
  Doublevd,
  Doubleve,
  Doublevf,
  Doublevg,
  Doublevh,
  Doublevi,
  Doublevj,
  Doublevk,
  Doublevl,
  Doublevm,
  Doublevn,
  Doublevo,
  Doublevp 
  )  
Arguments
Doublevavalue for a
Doublevbvalue for b
Doublevcvalue for c
Doublevdvalue for d
Doublevevalue for e
Doublevfvalue for f
Doublevgvalue for g
Doublevhvalue for h
Doublevivalue for i
Doublevjvalue for j
Doublevkvalue for k
Doublevlvalue for l
Doublevmvalue for m
Doublevnvalue for n
Doublevovalue for o
Doublevpvalue for p

 
 top of page
Method initCol
Initialise column c of matrix
Signature
initCol(intc,
  Doubleva,
  Doublevb,
  Doublevc,
  Doublevd 
  )  
Arguments
intccolumn number
Doublevavalue for first element
Doublevbvalue for second element
Doublevcvalue for third element
Doublevdvalue for fourth element

 
 top of page
Method initColV
Initialise column c of matrix
Signature
initColV(intc,
  Vector4dv 
  )  
Arguments
intccolumn number
Vector4dvvector with values

 
 top of page
Method initEulerXYX
Initialise with euler roation matrix
Signature
initEulerXYX(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerXYZ
Initialise with euler roation matrix
Signature
initEulerXYZ(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerXZX
Initialise with euler roation matrix
Signature
initEulerXZX(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerXZY
Initialise with euler roation matrix
Signature
initEulerXZY(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerYXY
Initialise with euler roation matrix
Signature
initEulerYXY(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerYXZ
Initialise with euler roation matrix
Signature
initEulerYXZ(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerYZX
Initialise with euler roation matrix
Signature
initEulerYZX(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerYZY
Initialise with euler roation matrix
Signature
initEulerYZY(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerZXY
Initialise with euler roation matrix
Signature
initEulerZXY(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerZXZ
Initialise with euler roation matrix
Signature
initEulerZXZ(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerZYX
Initialise with euler roation matrix
Signature
initEulerZYX(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initEulerZYZ
Initialise with euler roation matrix
Signature
initEulerZYZ(Doublea,
  Doubleb,
  Doublec 
  )  
Arguments
Doubleafirst rotation
Doublebsecond rotation
Doublecthird rotation

 
 top of page
Method initf
Initialise matrix
Signature
initf(floatva,
  floatvb,
  floatvc,
  floatvd,
  floatve,
  floatvf,
  floatvg,
  floatvh,
  floatvi,
  floatvj,
  floatvk,
  floatvl,
  floatvm,
  floatvn,
  floatvo,
  floatvp 
  )  
Arguments
floatvavalue for a
floatvbvalue for b
floatvcvalue for c
floatvdvalue for d
floatvevalue for e
floatvfvalue for f
floatvgvalue for g
floatvhvalue for h
floatvivalue for i
floatvjvalue for j
floatvkvalue for k
floatvlvalue for l
floatvmvalue for m
floatvnvalue for n
floatvovalue for o
floatvpvalue for p

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

 
 top of page
Method initRow
Initialise row r of matrix
Signature
initRow(intr,
  Doubleva,
  Doublevb,
  Doublevc,
  Doublevd 
  )  
Arguments
intrrow number
Doublevavalue for first element
Doublevbvalue for second element
Doublevcvalue for third element
Doublevdvalue for fourth element

 
 top of page
Method initRowV
Initialise row r of matrix
Signature
initRowV(intr,
  Vector4dv 
  )  
Arguments
intrrow number
Vector4dvvector 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(Matrix4dm)
Arguments
Matrix4dmmatrix to multiply

 
 top of page
Method mulf
Multiply this instance with scalar value v
Signature
mulf(Doublev)
Arguments
Doublevvalue to multiply

 
 top of page
Method mulv
Multiply this instance with a 4dim vector
Signature
mulv(Vector4dv)
 :Vector4d
Arguments
Vector4dvvector to multiply
Returns
Vector4dresulting vector

 
 top of page
Method New
Initialise from an array and return new instance of Matrix4d
Signature
New(Objecto)
 :Matrix4d
Arguments
Objectoarray with values
Returns
Matrix4dnew instance of Matrix4d

 
 top of page
Method setA
Set a element to v
Signature
setA(Doublev)
Arguments
Doublevnew value for a

 
 top of page
Method setB
Set b element to v
Signature
setB(Doublev)
Arguments
Doublevnew value for b

 
 top of page
Method setC
Set c element to v
Signature
setC(Doublev)
Arguments
Doublevnew value for c

 
 top of page
Method setCol
Set column c with values from v
Signature
setCol(intc,
  Vector4dv 
  )  
Arguments
intccolumn number
Vector4dvVector4d instance

 
 top of page
Method setD
Set d element to v
Signature
setD(Doublev)
Arguments
Doublevnew value for d

 
 top of page
Method setE
Set e element to v
Signature
setE(Doublev)
Arguments
Doublevnew value for e

 
 top of page
Method setF
Set f element to v
Signature
setF(Doublev)
Arguments
Doublevnew value for f

 
 top of page
Method setG
Set g element to v
Signature
setG(Doublev)
Arguments
Doublevnew value for g

 
 top of page
Method setH
Set h element to v
Signature
setH(Doublev)
Arguments
Doublevnew value for h

 
 top of page
Method setI
Set i element to v
Signature
setI(Doublev)
Arguments
Doublevnew value for i

 
 top of page
Method setJ
Set j element to v
Signature
setJ(Doublev)
Arguments
Doublevnew value for j

 
 top of page
Method setK
Set k element to v
Signature
setK(Doublev)
Arguments
Doublevnew value for k

 
 top of page
Method setL
Set l element to v
Signature
setL(Doublev)
Arguments
Doublevnew value for l

 
 top of page
Method setM
Set m element to v
Signature
setM(Doublev)
Arguments
Doublevnew value for m

 
 top of page
Method setN
Set n element to v
Signature
setN(Doublev)
Arguments
Doublevnew value for n

 
 top of page
Method setO
Set o element to v
Signature
setO(Doublev)
Arguments
Doublevnew value for o

 
 top of page
Method setP
Set p element to v
Signature
setP(Doublev)
Arguments
Doublevnew value for p

 
 top of page
Method setRow
Set row r with values from v
Signature
setRow(intr,
  Vector4dv 
  )  
Arguments
intrrow number
Vector4dvVector4d instance

 
 top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix4dm)
Arguments
Matrix4dmmatrix 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(Doublev)
Arguments
Doublevvalue 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