private List<FloatPoint> obtainPoints(Path path){
  List<FloatPoint> floatPoints=new ArrayList<>();
  for (float i=0; i < pointsNumber; i++) {
    float fraction=i / pointsNumber;
    float[] cords=getPathCoordinates(path,fraction);
    if (cords[0] != 0 && cords[1] != 0) {
      FloatPoint point=new FloatPoint(cords[0],cords[1]);
      floatPoints.add(point);
    }
  }
  return floatPoints;
}

private List < FloatPoint > obtainPoints ( Path path ) { List < FloatPoint > floatPoints = new ArrayList < > ( ) ; for ( float i = 0 ; i < pointsNumber ; i ++ ) { float fraction = i / pointsNumber ; float [ ] cords = getPathCoordinates ( path , fraction ) ; if ( cords [ 0 ] != 0 && cords [ 1 ] != 0 ) { FloatPoint point = new FloatPoint ( cords [ 0 ] , cords [ 1 ] ) ; floatPoints . add ( point ) ; } } return floatPoints ; }
given a path obtain the list of points this method make use of pointsnumber size
