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

Class tkmath.Matrix2x3f


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

  Base classes:
  Methods:

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

 
→ 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 'col' values
Signature
getCol(intcol)
 :Vector3f
Arguments
intcol–column index
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 getRow
Get row 'row' vector
Signature
getRow(introw)
 :Vector3f
Arguments
introw–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
Initialize matrix (in row-major order)
Signature
init(floata,
  floatb,
  floatc,
  floatd,
  floate,
  floatf 
  )  
Arguments
floata–value for m11
floatb–value for m12
floatc–value for m13
floatd–value for m21
floate–value for m22
floatf–value for m23

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

 
→ top of page
Method initColv
Initialize matrix column from vector or array-like object
Signature
initColv(intcol,
  Vector2fv 
  )  
Arguments
intcol–
Vector2fv–vector 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
introw–row number
floata–value for first column
floatb–value for second column
floatc–value for third column

 
→ top of page
Method initRowV
Initialize matrix row from vector or array-like object
Signature
initRowV(introw,
  Vector3fv 
  )  
Arguments
introw–row index
Vector3fv–vector 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
Matrix2x3fm–matrix to multiply (rhs)

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

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

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

 
→ top of page
Method New
Initialize and return new instance of Matrix2x3f
Signature
New(floata,
  floatb,
  floatc,
  floatd,
  floate,
  floatf 
  )  
 :Matrix2x3f
Arguments
floata–value for a
floatb–value for b
floatc–value for c
floatd–value for d
floate–value for e
floatf–value for f
Returns
Matrix2x3f–new 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
intc–column number
Vector3fv–Vector3f 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
introw–row number
Vector3fv–Vector3f instance

 
→ top of page
Method sub
Substract another matrix m from this instance
Signature
sub(Matrix2x3fm)
Arguments
Matrix2x3fm–matrix 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
floats–scaling 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. Tue, 3/Mar/2026 18:10:18