4x4

Static variables

@:value(5)staticfinalinlineread onlycolumns:Int = 5

staticread onlycounting:Matrix5x5


>>> ({
... Matrix5x5.counting == new Matrix5x5({ a: 1.,  b: 2.,  c: 3.,  d: 4.,  e: 5.
...                                     , f: 6.,  g: 7.,  h: 8.,  i: 9.,  j: 10.
...                                     , k: 11., l: 12., m: 13., n: 14., o: 15.
...                                     , p: 16., q: 17., r: 18., s: 19., t: 20.
...                                     , u: 21., v: 22., w: 23., x: 24., y: 25. } );
... }) == true

staticread onlyminus1:Matrix5x5


>>> ({
... Matrix5x5.minus1 == new Matrix5x5({ a: -1., b: 0., c: 0., d: 0., e: 0.
...                                   , f: 0., g: -1., h: 0., i: 0., j: 0.
...                                   , k: 0., l: 0., m: -1., n: 0., o: 0.
...                                   , p: 0., q: 0., r: 0., s: -1., t: 0.
...                                   , u: 0., v: 0., w: 0., x: 0., y: -1. } );
... }) == true

@:value(5)staticfinalinlineread onlyrows:Int = 5

staticread onlyself:Matrix5x5

staticread onlyunit:Matrix5x5


>>> ({ 
... Matrix5x5.unit == new Matrix5x5({ a: 1., b: 0., c: 0., d: 0., e: 0.
...                                 , f: 0., g: 1., h: 0., i: 0., j: 0.
...                                 , k: 0., l: 0., m: 1., n: 0., o: 0.
...                                 , p: 0., q: 0., r: 0., s: 1., t: 0.
...                                 , u: 0., v: 0., w: 0., x: 0., y: 1. } );
... }) == true

staticread onlyzero:Matrix5x5


>>> ({
... Matrix5x5.zero == new Matrix5x5({ a: 0., b: 0., c: 0., d: 0., e: 0.
...                                 , f: 0., g: 0., h: 0., i: 0., j: 0.
...                                 , k: 0., l: 0., m: 0., n: 0., o: 0.
...                                 , p: 0., q: 0., r: 0., s: 0., t: 0.
...                                 , u: 0., v: 0., w: 0., x: 0., y: 0. } );
... }) == true

Static methods

@:op(A + B)staticinlineadd(m0:Matrix5x5, m1:Matrix5x5):Matrix5x5


>>> ({ 
... var a = Matrix5x5.unit;
... a + a == new Matrix5x5( { a: 2., b: 0., c: 0., d: 0., e: 0.
...                         , f: 0., g: 2., h: 0., i: 0., j: 0.
...                         , k: 0., l: 0., m: 2., n: 0., o: 0.
...                         , p: 0., q: 0., r: 0., s: 2., t: 0.
...                         , u: 0., v: 0., w: 0., x: 0., y: 2. } ); }) == true

staticinlineclone(this:Mat5x5):Matrix5x5


>>> Matrix5x5.counting == Matrix5x5.counting.clone() 

@:op(A == B)staticinlineequal(a:Matrix5x5, b:Matrix5x5):Bool


>>> ({ 
... var a = Matrix5x5.counting;
... var b = Matrix5x5.counting;
... a == b; }) == true

staticfloatToStringPrecision(n:Float, prec:Int):String

staticinlinegetXY(this:Mat5x5, x:Int, y:Int):Float

staticinlineiterator(this:Mat5x5):ArrayIterator<Float>


>>> ({ 
... var m = Matrix5x5.counting;
... var arr = new Array();
... for( i in m ){
...   arr.push(i); 
... } 
... [1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.,13.,14.,15.,16.,17.,18.,19.,20.,21.,22.,23.,24.,25.].toString() == arr.toString(); }) == true

staticinlinemax5(f0:Float, f1:Float, f2:Float, f3:Float, f4:Float):Int

@:op(A * B)staticinlinemultiply(r:Matrix5x5, s:Matrix5x5):Matrix5x5

staticinlinenegate(this:Mat5x5):Matrix5x5

@:op(-A)staticinlinenegating(a:Matrix5x5):Matrix5x5


>>> ({ 
... var a = Matrix5x5.counting;
... var b = -a;
... b == new Matrix5x5({ a: -1., b: -2., c: -3., d: -4., e: -5.
...                    , f: -6., g: -7., h: -8, i: -9., j: -10.
...                    , k: -11., l: -12., m: -13., n: -14., o:-15.
...                    , p: -16., q: -17., r: -18., s: -19., t: -20.
...                    , u: -21., v: -22., w: -23., x: -24., y: -25. } ); 
... }) == true

@:op(A != B)staticinlinenotEqual(a:Matrix5x5, b:Matrix5x5):Bool


>>> ({ 
... var a = Matrix5x5.counting;
... var b = a + a;
... a != b; }) == true

staticinlinepretty(this:Mat5x5, prec:Int):String

staticinlinesetXY(this:Mat5x5, x:Int, y:Int, v:Float):Float

@:op(A - B)staticinlinesub(m0:Matrix5x5, m1:Matrix5x5):Matrix5x5


>>> ({ 
... var a = Matrix5x5.unit;
... a - a == Matrix5x5.zero; }) == true

staticinlinetranspose(this:Mat5x5):Matrix5x5