curve-knife

<script src="./point_src/curve-knife"></script>

* * Linearly interpolate between two points a and b at parameter t * Returns a new point { x, y }

Meta Data
filepath_exists True
path curve-knife
filepath curve-knife.js
clean_files ()

  • FunctionDeclaration
    function

    lerp

    (
    a , b , t
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • FunctionDeclaration
    function

    subdivideCubicBezier

    (
    P0 , cP1 , cP2 , P3 , t
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    const

    findNearestPoint

    =
    function ( bezierStack , p , divisor =100 )
    Example usage:
  • ExpressionStatement

    :

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