browser_client/examples/example2_posenet_skeleton_mirror/sketch.js
// Function to see if two points are "touching"
Function to see if two points are "touching"
Function to see if two points are " touching "
function touching(nose1, nose2) {
  const d = dist(nose1.x, nose1.y, nose2.x, nose2.y);
  if (d < 50) {
    return true;
  }
  return false;
}
function touching ( nose1 , nose2 ) { const d = dist ( nose1 . x , nose1 . y , nose2 . x , nose2 . y ) ; if ( d < 50 ) { return true ; } return false ; }
Function to see if two points are "touching"
Function to see if two points are " touching "
// Get the distance between the two noses // If the distance is less than 50 pixels we are touching! // Otherwise we are not touching!