pointlistgenerator
Meta Data
| filepath_exists | True |
| path | pointlistgenerator |
| filepath | pointlistgenerator.js |
| clean_files | () |
-
ClassDeclarationclass
GridTools
extends Noneclass comments:Return a pointlist of the items within the pseudo grid let gridTools = new GridTools(pointList, 10) let columnPointList = gridTools.getColumn(gridTools.width-1) columnPointList.setMany(DOWN_DEG, 'rotation')-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Return a pointlist of the items within the pseudo grid let gridTools = new GridTools(pointList, 10) let columnPointList = gridTools.getColumn(gridTools.width-1) columnPointList.setMany(DOWN_DEG, 'rotation')allow index -1 etc, to reduce from the right.
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Subdivide all cells within the grid by the given `split` integer. This adds up to 5 points to divide a _quad_ into 4 equal quads. if `mutate` is true, the new points are inserted into the grid, accounting for the row count offset. If mutate is false, return the new points. points = PointList.generate.grid(16, 4, 50) points.getGridTool().subdivide(1, true) // points.length == 40
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Given a point, or index, return the siblings of the grid `rowCount` or `total` is requiredUp must step back as many cells as a column
ClassDeclarationclassPointListGenerator
extends Noneclass comments:If the given object is a _point_, each step is multiplied.-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Synonymous to: randomPoints = PointList.generate.random(pointCount) // Alter the positions of all the points, a radius of 100, at a position randomPoints.shape.radius(100, point(200,200))
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Generate a list of points to a _count_. PointList.generate.list(100) Provide an offset per step: PointList.generate.list(100, distance=10) PointList.generate.list(100, distance=point(10,10))
-
dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])Generate a set of random points PointList.generate.random(10) Apply a multipler and offset: let count = 20 let multiplier = [300, 200, null, 0] let offset = [100, 100, 10, 0] PointList.generate.random(count, multiplier, offset)
ExpressionStatement:
dict_keys(['type', 'expression', 'pos'])