PF2d::Matrix(T, W, H)
Inherits Indexable::Mutable < Indexable < Enumerable < Iterable < Struct < Value < Object
Constructors
new
SourceInstance methods
==(other : self)
Source[](row : Int, col : Int)
Source[]=(row : Int, col : Int, value : T)
Sourcefill(*args, **options)
Sourcefill(*args, **options, &)
Sourceheight
Sourceinitialize
Sourcesize(*args, **options)
Sourcesize(*args, **options, &)
Sourceswap_cols(c1, c2)
Sourceswap_rows(r1, r2)
Sourceto_s(io)
Sourceunsafe_fetch(*args, **options)
Sourceunsafe_fetch(*args, **options, &)
Sourceunsafe_put(*args, **options)
Sourceunsafe_put(*args, **options, &)
Sourcewidth
SourceMacros
[](*args)
Sourcedefine(width, height)
Define a maxtrix with a given width and height:
Matrix.define(3, 3) # => produces the PF2d::Mat3x3(T) struct constant
define_mul(w)
This allows matrix multiplication for this matrix by another of w width
PF2d::Matrix.define(3, 3) # => PF2d::Mat3x3(T)
PF2d::Mat3x3.define_mul(3) # Only define this once
PF2d::Mat3x3[...] * PF2d::Mat3x3[...] # => Mat3x3