Grid

Description:
  • This is the code documentation for our Grid class.

Source:
Author:
  • Noah Watzal, Aymeric Hollaus

This is the code documentation for our Grid class.

Methods

(inner) constructor(n, m, x_min, x_max, y_min, y_max, vmin, vmax)

Description:
  • Creates the class instances for Grid.

Source:
Parameters:
Name Type Description
n Number

width of the grid.

m Number

height of the grid.

x_min Number

min for scaling of x.

x_max Number

max for scaling of x.

y_min Number

min for scaling of y.

y_max Number

max for scaling of y.

vmin Number

min for color scaling.

vmax Number

max for color scaling.

(inner) get()

Description:
  • usual get methods for the values.

Source:
Returns:

this.values

(inner) pos_at_index()

Description:
  • gives postion at certain index.

Source:

(inner) to_context()

Source: