tangents

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

Meta Data
dependencies ()
unused_keys ('title',)
unknown_keys ('https',)
https ['//www.youtube.com/watch?v=m1zmWiboxzU']
filepath_exists True
path tangents
filepath tangents.js
clean_files ()

  • FunctionDeclaration
    function

    calculateEdgeToEdgeLine

    (
    pointA , pointB
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    rawCalculateAdjustedRotatedTangentLines

    (
    pointA , pointB
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    const

    halfPi

  • FunctionDeclaration
    function

    calculateAdjustedRotatedTangentLines

    (
    pointA , pointB
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    let

    arcTangents

    =
    function ( a , b , rLength , add =True )
    https://www.youtube.com/watch?v=fVbpIwh_S6o
  • VariableDeclaration
    const

    twoPointsAngleRaw

    =
    function ( origin , target )
    given two points, return the relative angle (in radians), of target from the origin. For example if the target was left of the origin, this would be a -Math.PI
  • VariableDeclaration
    const

    twoPointsAngle

    =
    function ( origin , target )
  • ClassDeclaration
    class comments:
    Calculate distance between centers
    • constructor

      constructor

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

      calculateTangentLines

      (
      pointA , pointB
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      Calculate distance between centers
    • method

      calculateCrossTangentLines

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

      calculateConcaveTangentArcs

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

      calculateConvexTangentArcs

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

      points

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return two points on _this_ point for the _start_ of two tangent lines [a(top), b(top), a(bottom), b(bottom)]
    • method

      outerLines

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return lines _a_ and _b_, each being a direct tagent
    • method

      crossLines

      (
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the inner tagents, point A (top), to point B (bottom), and the antethisis. similar to [ab(), ba()]
    • method

      lineA

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return a line (two points) for the _top_ direct tagent.
    • method

      lineB

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return a line (two points) for the _bottom_ direct tagent.
    • method

      a

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the top line tangent _start_ point
    • method

      b

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the bottom line _start_ point
    • method

      aa

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the _line_ of pointA (top), to pointB (top) Similar to `this.points(other)[0,2]`
    • method

      bb

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the antipose parallel tangent to aa(), similar to `this.points(other)[1,4]`
    • method

      ab

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the tangent line _through_ the center, similar to points [0,3] However the tangent points are adjusted - rotated around the radius.
    • method

      ba

      (
      other
      )
      from class_name
      dict_keys(['kind', 'word', 'static', 'computed', 'is_symbol', 'value', 'type', 'comments', 'pos'])
      return the tangent line point A (bottom), point B (top)
    dict_keys(['kind', 'word', 'parentName', 'type', 'body', 'comments', 'pos'])
  • ExpressionStatement

    :

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