touching

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

Some simple functions for a range of points touching For more interactive components, consider the collision or intersection components.

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

  • VariableDeclaration
    const

    pointToPointContact

    =
    function ( a , b )
  • VariableDeclaration
    const

    pointToPointContactEdge

    =
    function ( a , b , edgeLimit =undefined )
    distance test for edges.
  • VariableDeclaration
    const

    pointToPointContactEdgeIncludeInterals

    =
    function ( a , b , edgeLimit =undefined )
    distance test for edges.
  • VariableDeclaration
    const

    pointToManyContact

    =
    function ( a , many , excludeTarget =True , edgeLimit =undefined )
    Given a point, and another list of points, return any points _touching_ the target point.
  • ExpressionStatement

    :

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

    :

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