Discover Packages
github.com/Willyfrog/peano
matrix
package
Version:
v0.0.0-...-5a4f024
Opens a new window with list of versions in this module.
Published: Sep 5, 2015
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
Documentation
¶
FindSmallerCellSize
find the matrix with the smaller cell size which contains
points inside its cells
New
creates a new matrix with a given size
Draw the matrix into the canvas using the `strat` Strategy
GetSquare
get square in position (i,j)
Subdivide
get the next iteration of matrix if every square
of it was subidivided into a 4x4 submatrix
Strategy interface defines the order inside the square and inside the matrix.
this order will define how the matrix will be drawn
there are examples of use in the `github.com/Willyfrog/peano/strategy` module
Source Files
¶
Click to show internal directories.
Click to hide internal directories.