Grid
Grid
Static
utilsCalculate the logarithm of the given number (num) to a given base.
This function returns the number l with
num == Math.pow(base,l)
baseLog
Grid
log(base)/log(num)
The base to calculate the logarithm to.
The number to calculate the logarithm for.
Calculate the raster scale for a given logarithmic mapping.
Example (with adjustFactor=2):
If scale is 4.33, then the mapping is 1/2 (because 2^2 <= 4.33 <= 2^3)
If scale is 0.33, then the mapping is 2 because (2^(1/2) >= 0.33 >= 2^(1/4)
mapRasterScale
Grid
The base for the logarithmic raster scaling when zoomed.
The currently used scale factor.
Grid
Classdesc
A grid class with vertical and horizontal lines (or a raster).
Note that the PlotBoilerplate already has a Grid instance member. The Grid is not meant to be added to the canvas as a drawable as it encapsulates more an abstract concept of the canvas rather than a drawable object.
Requires
Vertex