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

    =
    (Math.PI * .5)
  • 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'])