P5js > À l'intérieur d'un cercle

Contents (hide)

  1. 1. Algorithme
  2. 2. Exemple(s)

1.  Algorithme

Un point est à l'intérieur d'un cercle si :

if ( dist( xPoint, yPoint , xCercle , yCercle) < rayon ) {

}

2.  Exemple(s)