class Array2D(T)

Defined in:

utils/misc.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(size : IntVector2, value : T) #

[View source]
def self.new(size : IntVector2) #

[View source]
def self.new(*, size : IntVector2, data : Array(T)) #

[View source]
def self.new(size : IntVector2, &) #

[View source]

Instance Method Detail

def [](x, y) #

[View source]
def [](v2) #

[View source]
def []=(x, y, value : T) #

[View source]
def []=(v2, value : T) #

[View source]
def count_neightboors(pos, diagonal = false, &) #

[View source]
def data #

[View source]
def fill(value : T) #

[View source]
def map_with_index(&) #

[View source]
def map_with_index!(&) #

[View source]
def size #

[View source]