math

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

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

  • ExpressionStatement

    :

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

    :

    dict_keys(['type', 'expression', 'pos'])
  • VariableDeclaration
    const

    vectorAngle

    =
    ( x , y ) =>
    vectorAngle([3, 4], [4, 3]); // 0.283794109208328
  • VariableDeclaration
    const

    applyAngle

    =
    function ( s )
    let o1 = getPointOffsetAbsolute(s.position, s.mid, offset, 1)
  • VariableDeclaration
    const

    drawArcThroughPoint

    =
    function ( arc , start , end , mid , offset =20 )
    let o4 = getPointOffsetAbsolute(start, mid, offset + offsetPlus, 1)
  • VariableDeclaration
    let

    quantizeT

    =
    function ( s , t , rect )
  • VariableDeclaration
    const

    spotPlacement

    =
    function ( s , offset )
    c.width = 2.5//offset * .25
  • FunctionDeclaration
    function

    findOffsetPoint

    (
    point1 , point2 , offsetDistance = 10
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    calculateFirstSegmentOffsetFromEndWithNeg

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

    calculateFirstSegmentOffsetFromEndWithNegY

    (
    start , end , k = y
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    calculateFirstSegmentOffsetFromEndA

    (
    start , end , outputAngle = 90
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    calculateFirstSegmentOffsetFromEnd

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

    calculateFirstSegmentLength

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

    quantizeNumber

    (
    value , quantize = 1
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    findRadius

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

    quantizeAngle

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

    calculateAngle

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

    calculateAngleWithRef

    (
    point1 , point2 , referencePoint
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    calculateAngleWithRefNegMirror

    (
    point1 , point2 , referencePoint
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    calculateAngleWithRefWithNeg

    (
    point1 , point2 , referencePoint
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    adjustAngleToPreferredRotation

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

    findOffsetPoint

    (
    point1 , point2 , offsetDistance = 10
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    getOffsetPoint

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

    getPointOffsetAbsolute

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

    linePathArray

    (
    start , end , gap = 10 , rotation
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    linePathArray2

    (
    start , end , gap = 10 , rotation
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    linePathArray3

    (
    start , end , gap = 10 , rotation , offset
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    clipLineToRect

    (
    p0 , p1 , topLeft , bottomRight
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    findLineCircleIntersections

    (
    p0 , p1 , cx , cy , radius
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    drawGridInCircle

    (
    center , radius , gap , rotation , startOffset
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])