Split

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

Split a point or a line to many smaller points.

const p = new Point({radius: 100})
let points = p.split(4)
Meta Data
title Split
dependencies ()
unused_keys ()
unknown_keys ('files',)
files ['', 'functions/clamp.js']
filepath_exists True
path split
filepath split.js
clean_files ('functions/clamp.js',)

  • VariableDeclaration
    const

    splitToPointList

    =
    function ( point , count , radius , rotation , angle =undefined )
    splitToPointList(point, count).pen.indicators(ctx)
    p1.rotation = rotation || point.rotation
  • VariableDeclaration
    const

    lerp

    =
    ( x , y , a ) =>
  • FunctionDeclaration
    function

    bLerp

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

    lerpV2

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

    get_bezier_point

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

    get_bezier_derivative

    (
    p0 , p1 , p2 , p3 , t
    )
    dict_keys(['kind', 'word', 'generator', 'expression', 'async', 'params', 'id', 'pos', 'type'])
  • VariableDeclaration
    const

    lerpRadius

    =
    function ( a , b , v )
    Process the width from the _first_ to the _last_ of a line.
  • VariableDeclaration
    const

    radiusManual

    =
    function ( a , b , i )
  • ExpressionStatement

    :

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

    :

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

    :

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