Constructors
GridPlane3d
#Create a new grid.
public GridPlane3d()
boundary,
Rectangular boundary of grid.
domain,
Domain of grid along the boundary X direction.
codomain
Domain of grid along the boundary Y direction.
Fields
Methods
Draw
#Draw this grid into a display pipeline. It is strongly recommended to only draw trimmed grids as that can vastly reduce the overhead from drawing (or attempting to draw) thousands upon thousands of invisible lines and labels.
public void Draw()
pipeline,
Pipeline to draw with.
Color
colour,
Colour of lines and labels.
thick,
Thickness of grid boundary and axes.
thin,
Thickness of grid lines.
minSpacing = 15,
Minimum spacing of grid lines. Lines closer together than this value are not drawn.
maxSpacing = 30,
Ideal spacing of grid lines. Lines further apart than this value are drawn fully opaque.
drawLabels = true
True to draw labels next to grid lines.
GenerateZoomAwareGridLines
#Create one directional grid lines sorted from large magnitude to small.
public static IEnumerable<(Line line, double value, double opacity)> GenerateZoomAwareGridLines()
lowerEdge,
upperEdge,
domain,
viewport,
spacing
IterateFromLargeToSmall
#Iterate over all values in an interval from most relevant to least relevant. This method enumerates forever, it is up to the called to stop enumerating.