recttools

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

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

  • VariableDeclaration
    const

    twoPointBox

    =
    function ( a , b , func )
    Given two points, return 4 lines let lines = twoPointBox(this.squishA, this.squishB) lines.forEach(l=>l.render(ctx))
  • VariableDeclaration
    const

    disorderdTwoPointsAsRect

    =
    function ( a , b )
    x top
  • VariableDeclaration
    const

    twoPointsAsRectOrdered

    =
    function ( a , b )
    Bottom-left corner
  • ClassDeclaration
    class comments:
    y: 0
    A Shape to assist with within/outside
    • method

      has

      (
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      A Shape to assist with within/outside
    • method

      contains

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

      hasPoint

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

      containsPoint

      (
      p , testRadius = True
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      debugger;
    • method

      touchingPoint

      (
      p , r
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      const r = p.radius
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • VariableDeclaration
    const

    hasIntersection

    =
    ( ) =>
    bodmas
  • VariableDeclaration
    const

    intersect

    =
    function ( c , r )
  • VariableDeclaration
    const

    intersects

    =
    function ( circle , rect )
    circleDistance.x = Math.abs(circle.x - rect.x);
  • VariableDeclaration
    const

    testRect

    =
    function ( )
    r.containsPoint(new Point(20, 30)) == true