constrain-distance-locked

<script src="./point_src/constrain-distance-locked"></script>

Meta Data
filepath_exists True
path constrain-distance-locked
filepath constrain-distance-locked.js
clean_files ()

  • VariableDeclaration
    const

    followPoint

    =
    function ( pointA , pointB , followDistance )
    Calculate the distance between pointA and pointB
  • VariableDeclaration
    const

    lerp

    =
    ( x , y , a ) =>
  • VariableDeclaration
    const

    invlerp

    =
    ( x , y , a ) =>
    const clamp = (a, min = 0, max = 1) => Math.min(max, Math.max(min, a));
  • VariableDeclaration
    const

    range

    =
    ( x1 , y1 , x2 , y2 , a ) =>