Mat22.kl

Types

Mat22 (struct)

The Mat22 represents a 2 by 2 matrix. It uses Vec2 types for each of the 2 rows.

/*
** Example: Construct Mat22
*/

// create a matrix 2x2
Vec2 v0(1.0, 0.0);
Vec2 v1(0.0, 1.0);
Mat22 mat(v0, v1);

Members

Vec2 row0  
Vec2 row1  

Methods

  Mat22 ( in Mat22 other )
  Mat22 ( in Scalar _00, in Scalar _01, in Scalar _10, in Scalar _11 )
  Mat22 ( in Vec2 row0, in Vec2 row1 )
  Mat22 ()
Mat22 add ? ( in Mat22 other )
Mat22 adjoint ? ()
Boolean almostEqual ? ( in Mat22 other )
Boolean almostEqual ? ( in Mat22 other, in Scalar precision )
Mat22 clone ? ()
Scalar determinant ? ()
Mat22 divideScalar ? ( in Scalar other )
Boolean equal ? ( in Mat22 other )
  get ? ( io Float32 v<> )
  get ? ( io Float32 v<>, in UInt32 o )
  get ? ( io Float32 v[] )
  get ? ( io Float32 v[], in UInt32 o )
  get ? ( io Float64 v<> )
  get ? ( io Float64 v<>, in UInt32 o )
  get ? ( io Float64 v[] )
  get ? ( io Float64 v[], in UInt32 o )
UInt32 hash ? ()
Mat22 inverse ? ()
Mat22 multiply ? ( in Mat22 other )
Mat22 multiplyScalar ? ( in Scalar other )
Vec2 multiplyVector ? ( in Vec2 other )
  set ! ( in Float32 v<> )
  set ! ( in Float32 v<>, in UInt32 o )
  set ! ( in Float64 v<> )
  set ! ( in Float64 v<>, in UInt32 o )
  set ! ( in Scalar _00, in Scalar _01, in Scalar _10, in Scalar _11 )
  setColumns ! ( in Vec2 col0, in Vec2 col1 )
  setDiagonal ! ( in Scalar v )
  setDiagonal ! ( in Vec2 v )
  setIdentity ! ()
  setNull ! ()
  setRows ! ( in Vec2 row0, in Vec2 row1 )
Mat22 subtract ? ( in Mat22 other )
Mat22 transpose ? ()

Operators

Mat22 = ( Param other )