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

Class tkmath.Matrix2x3f


SynopsisThis class represents a single precision 2x3 square matrix.

  Base classes:
  Methods:

Method add
Add another matrix m to this instance
Signature
add(Matrix2xfm)
Arguments
Matrix2xfmmatrix to add

 
 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 'col' values
Signature
getCol(intcol)
 :Vector3f
Arguments
intcolcolumn index
Returns
Vector3fvector 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 getRow
Get row 'row' vector
Signature
getRow(introw)
 :Vector3f
Arguments
introwrow number
Returns
Vector3fvector 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
Stringstring representation of matrix

 
 top of page
Method init
Initialize matrix (in row-major order)
Signature
init(floata,
  floatb,
  floatc,
  floatd,
  floate,
  floatf 
  )  
Arguments
floatavalue for m11
floatbvalue for m12
floatcvalue for m13
floatdvalue for m21
floatevalue for m22
floatfvalue for m23

 
 top of page
Method initColf
Initialize matrix column from scalars
Signature
initColf(intcol,
  floata,
  floatb,
  floatc 
  )  
Arguments
intcolcolumn index
floatavalue for first element
floatbvalue for second element
floatc

 
 top of page
Method initColv
Initialize matrix column from vector or array-like object
Signature
initColv(intcol,
  Vector2fv 
  )  
Arguments
intcol
Vector2fvvector with values

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

 
 top of page
Method initOrtho
Signature
initOrtho()

 
 top of page
Method initRotatef
Signature
initRotatef()

 
 top of page
Method initRow
Initialize matrix row from scalars
Signature
initRow(introw,
  floata,
  floatb,
  floatc 
  )  
Arguments
introwrow number
floatavalue for first column
floatbvalue for second column
floatcvalue for third column

 
 top of page
Method initRowV
Initialize matrix row from vector or array-like object
Signature
initRowV(introw,
  Vector3fv 
  )  
Arguments
introwrow index
Vector3fvvector with values

 
 top of page
Method initScalef
Signature
initScalef()

 
 top of page
Method initScalev
Signature
initScalev()

 
 top of page
Method initSkewXf
a in radians (0..2PI)
Signature
initSkewXf()
Description
see https://www.w3.org/TR/css-transforms-1/#SkewXDefined

 
 top of page
Method initSkewYf
a in radians (0..2PI)
Signature
initSkewYf()

 
 top of page
Method initTranslatef
Signature
initTranslatef()

 
 top of page
Method initTranslatev
Signature
initTranslatev()

 
 top of page
Method mul
Multiply this instance by matrix m (this * m)
Signature
mul(Matrix2x3fm)
Arguments
Matrix2x3fmmatrix to multiply (rhs)

 
 top of page
Method mulf
Multiply this instance by scalar value f
Signature
mulf(floatf)
Arguments
floatfvalue to multiply

 
 top of page
Method mulRev
Reverse-multiply matrix m by this instance (m * this)
Signature
mulRev(Matrix2x3fm)
Arguments
Matrix2x3fmmatrix to multiply (lhs)

 
 top of page
Method mulv
Multiply matrix by a vector
Signature
mulv(Vector2fv)
 :Vector2f
Arguments
Vector2fvvector to multiply
Returns
Vector2fresulting vector

 
 top of page
Method New
Initialize and return new instance of Matrix2x3f
Signature
New(floata,
  floatb,
  floatc,
  floatd,
  floate,
  floatf 
  )  
 :Matrix2x3f
Arguments
floatavalue for a
floatbvalue for b
floatcvalue for c
floatdvalue for d
floatevalue for e
floatfvalue for f
Returns
Matrix2x3fnew instance of Matrix2x3f

 
 top of page
Method rotatef
Multiply by rotation matrix (angle is in radian measure)
Signature
rotatef(floatang)
Arguments
floatang

 
 top of page
Method scalef
Multiply by scale matrix
Signature
scalef(floatx,
  floaty 
  )  
Arguments
floatx
floaty

 
 top of page
Method scalev
Multiply by scale matrix
Signature
scalev(Vector2fv)
Arguments
Vector2fv

 
 top of page
Method setA
Set a element to m11
Signature
setA(floatv)
Arguments
floatv

 
 top of page
Method setB
Set b element to m12
Signature
setB(floatv)
Arguments
floatv

 
 top of page
Method setC
Set c element to m13
Signature
setC(floatv)
Arguments
floatv

 
 top of page
Method setCol
Set column 'col' with values from v
Signature
setCol(intc,
  Vector3fv 
  )  
Arguments
intccolumn number
Vector3fvVector3f instance

 
 top of page
Method setD
Set d element to m21
Signature
setD(floatv)
Arguments
floatv

 
 top of page
Method setE
Set e element to m22
Signature
setE(floatv)
Arguments
floatv

 
 top of page
Method setF
Set f element to m23
Signature
setF(floatv)
Arguments
floatv

 
 top of page
Method setRow
Initialize row 'row' with values from v
Signature
setRow(introw,
  Vector3fv 
  )  
Arguments
introwrow number
Vector3fvVector3f instance

 
 top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix2x3fm)
Arguments
Matrix2x3fmmatrix to substract

 
 top of page
Method translatef
Multiply by translation matrix
Signature
translatef(floatx,
  floaty 
  )  
Arguments
floatx
floaty

 
 top of page
Method translatev
Multiply by translation matrix
Signature
translatev(Vector2fv)
Arguments
Vector2fv

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

 
 top of page
Method unitScale
Normalise matrix using Hilbert-Schmidt norm and multiply by s afterwards
Signature
unitScale(floats)
Arguments
floatsscaling factor

 
 top of page
 

Project Modules:tkmath 
Project Classes:Complexd , Complexf , Math , Matrix , Matrix2d , Matrix2f , Matrix2x3f , 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 , f16_from_f32 , f32_from_f16 , floord , floorf , fx16_from_f16 , hypotd , hypotf , log10d , log10f , log2d , log2f , logcd , logcf , logd , logf , matrix2d , matrix2f , matrix2x3f , 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 , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59