pointlistgenerator

<script src="./point_src/pointlistgenerator"></script>

Meta Data
filepath_exists True
path pointlistgenerator
filepath pointlistgenerator.js
clean_files ()

  • ClassDeclaration
    class 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')
    • constructor

      constructor

      (
      parent , width , pos
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      getColumn

      (
      index
      )
      from class_name
      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.

    • method

      getRow

      (
      i
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      getRect

      (
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      Splice a segment from the grid in the form of a rectagle

    • method

      subdivide

      (
      split = 1 , mutate = True
      )
      from class_name
      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
      
    • method

      getSiblings

      (
      index , columnCount , rowCount , total , expand
      )
      from class_name
      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 required
      

      Up must step back as many cells as a column

    • method

      getSiblings8

      (
      index , columnCount , rowCount , total
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      If rowCount is not given, assume a square grid rowCount == columnCount

    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ClassDeclaration
    class comments:
    If the given object is a _point_, each step is multiplied.
    • constructor

      constructor

      (
      parent
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      _distanceToPointFunction

      (
      distance
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      If the given object is a point, each step is multiplied.

    • method

      radius

      (
      count , radius , origin
      )
      from class_name
      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))
      
    • method

      countOf

      (
      count
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])

      Genrate a count of points, without editing the values.

    • method

      list

      (
      count = 5 , distance = 10 , origin = undefined
      )
      from class_name
      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))
      
    • method

      random

      (
      count , multiplier = 100 , offset = {x: 0, y: 0, radius: 0, ...}
      )
      from class_name
      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)
      
    • method

      grid

      (
      pointCount , rowCount , pointSpread , gridPosition
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    • method

      getGridTool

      (
      rowCount , pos
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ExpressionStatement

    :

    dict_keys(['type', 'expression', 'pos'])