code: void setEndPoints() {
  		float angleNum = 360f / (rayNum - 1);
  		for (int i = 0; i < rayNum; i++) {
  			final float angle = angleNum * i;
  			sin[i] = MathUtils.sinDeg(angle);
  			cos[i] = MathUtils.cosDeg(angle);
  			endX[i] = distance * cos[i];
  			endY[i] = distance * sin[i];
  		}
  	}
docs: Updates light basing on it's distance and rayNum *