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

Class tkmath.Matrix4f


SynopsisThis class represents a single precision 4x4 square matrix.

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

 
 top of page
Method BuildEulerXYX4f
Build an euler rotation matrix with XYX convention
Signature
BuildEulerXYX4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerXYZ4f
Build an euler rotation matrix with XYZ convention
Signature
BuildEulerXYZ4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerXZX4f
Build an euler rotation matrix with XZX convention
Signature
BuildEulerXZX4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerXZY4f
Build an euler rotation matrix with XZY convention
Signature
BuildEulerXZY4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerYXY4f
Build an euler rotation matrix with YXY convention
Signature
BuildEulerYXY4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerYXZ4f
Build an euler rotation matrix with YXZ convention
Signature
BuildEulerYXZ4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerYZX4f
Build an euler rotation matrix with YZX convention
Signature
BuildEulerYZX4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerYZY4f
Build an euler rotation matrix with YZY convention
Signature
BuildEulerYZY4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerZXY4f
Build an euler rotation matrix with ZXY convention
Signature
BuildEulerZXY4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerZXZ4f
Build an euler rotation matrix with ZXZ convention
Signature
BuildEulerZXZ4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerZYX4f
Build an euler rotation matrix with ZYX convention
Signature
BuildEulerZYX4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildEulerZYZ4f
Build an euler rotation matrix with ZYZ convention
Signature
BuildEulerZYZ4f(floata,
  floatb,
  floatc 
  )  
 :Matrix4f
Arguments
floatafirst angle in radians
floatbsecond angle in radians
floatcthird angle in radians
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildLookAtMatrix4f
Build a look at matrix
Signature
BuildLookAtMatrix4f(Vector3feye,
  Vector3fcenter,
  Vector3fup 
  )  
 :Matrix4f
Arguments
Vector3feyeeye direction vector
Vector3fcentercenter of camera vector
Vector3fupvector for up direction
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildPerspectiveMatrix4f
Builds a perspective matrix
Signature
BuildPerspectiveMatrix4f(floatfov,
  floataspect,
  floatzNear,
  floatzFar 
  )  
 :Matrix4f
Arguments
floatfovfield of view in degrees
floataspectaspect ratio
floatzNearzNear value
floatzFarzFar value
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildRotateMatrix4f
Build a rotation matrix
Signature
BuildRotateMatrix4f(floatangle,
  Vector3faxis 
  )  
 :Matrix4f
Arguments
floatanglerotation angle
Vector3faxisrotation axis
Returns
Matrix4fgenerated matrix

 
 top of page
Method BuildTranslateMatrix4f
Build a translation matrix
Signature
BuildTranslateMatrix4f(Vector3fmove)
 :Matrix4f
Arguments
Vector3fmovemovement vector
Returns
Matrix4fgenerated matrix

 
 top of page
Method det
Calculate determinant of matrix
Signature
det():float
Returns
floatvalue of determinant

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

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

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

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

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

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

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

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

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

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

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

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

 
 top of page
Method getJ
Get value of j element
Signature
getJ():float
Returns
floatvalue of j element

 
 top of page
Method getK
Get value of k element
Signature
getK():float
Returns
floatvalue of k element

 
 top of page
Method getL
Get value of l element
Signature
getL():float
Returns
floatvalue of l element

 
 top of page
Method getM
Get value of m element
Signature
getM():float
Returns
floatvalue of m element

 
 top of page
Method getN
Get value of n element
Signature
getN():float
Returns
floatvalue of n element

 
 top of page
Method getO
Get value of o element
Signature
getO():float
Returns
floatvalue of o element

 
 top of page
Method getP
Get value of p element
Signature
getP():float
Returns
floatvalue of p element

 
 top of page
Method getQuaternionf
Tries to find a Quaternion representation of the matrix if possible
Signature
getQuaternionf():Quaternionf
Returns
QuaternionfQuaternion representation of matrix (or zero quaternion if not possible)

 
 top of page
Method getRC
Get element at (row, column)
Signature
getRC(introw,
  intcol 
  )  
Arguments
introwRow number (0..3)
intcolColumn number (0..3)

 
 top of page
Method getRow
Get row r values
Signature
getRow(intr)
 :Vector4f
Arguments
intrrow number
Returns
Vector4fvector 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(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 initCol
Initialise column c of matrix
Signature
initCol(intc,
  floatva,
  floatvb,
  floatvc,
  floatvd 
  )  
Arguments
intccolumn number
floatvavalue for first element
floatvbvalue for second element
floatvcvalue for third element
floatvdvalue for fourth element

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

 
 top of page
Method initEulerXYX
Initialise with euler rotation matrix
Signature
initEulerXYX(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerXYZ
Initialise with euler rotation matrix
Signature
initEulerXYZ(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerXZX
Initialise with euler rotation matrix
Signature
initEulerXZX(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerXZY
Initialise with euler rotation matrix
Signature
initEulerXZY(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerYXY
Initialise with euler rotation matrix
Signature
initEulerYXY(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerYXZ
Initialise with euler rotation matrix
Signature
initEulerYXZ(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerYZX
Initialise with euler rotation matrix
Signature
initEulerYZX(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerYZY
Initialise with euler rotation matrix
Signature
initEulerYZY(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerZXY
Initialise with euler rotation matrix
Signature
initEulerZXY(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerZXZ
Initialise with euler rotation matrix
Signature
initEulerZXZ(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerZYX
Initialise with euler rotation matrix
Signature
initEulerZYX(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

 
 top of page
Method initEulerZYZ
Initialise with euler rotation matrix
Signature
initEulerZYZ(floata,
  floatb,
  floatc 
  )  
Arguments
floatafirst rotation
floatbsecond rotation
floatcthird rotation

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

 
 top of page
Method initRotate
Initialize with rotation matrix for rotation of angle around vector dir.
Signature
initRotate(floatangle,
  Vector3fdir 
  )  
Arguments
floatangleRotation angle (0..2PI)
Vector3fdirVector to rotate around

 
 top of page
Method initRow
Initialise row r of matrix
Signature
initRow(intr,
  floatva,
  floatvb,
  floatvc,
  floatvd 
  )  
Arguments
intrrow number
floatvavalue for first element
floatvbvalue for second element
floatvcvalue for third element
floatvdvalue for fourth element

 
 top of page
Method initRowV
Initialise row r of matrix
Signature
initRowV(intr,
  Vector4fv 
  )  
Arguments
intrrow number
Vector4fvvector 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(Matrix4fm)
Arguments
Matrix4fmmatrix to multiply

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

 
 top of page
Method mulv
Multiply this instance with a 4dim vector
Signature
mulv(Vector4fv)
 :Vector4f
Arguments
Vector4fvvector to multiply
Returns
Vector4fresulting vector

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 
 top of page
Method setRC
Set element at (row, column) to v
Signature
setRC(introw,
  intcol,
  floatv 
  )  
Arguments
introwRow number (0..3)
intcolColumn number (0..3)
floatvnew value for a

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

 
 top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix4fm)
Arguments
Matrix4fmmatrix 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 scale by v afterwards
Signature
unitScale(floatv)
Arguments
floatvvalue 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