function position([x, z], max_radius, y = 1.5) {
  let angle = float(0, Math.PI * 2);
  let radius = float(0, max_radius);
  return vec3.of(
    x + radius * Math.cos(angle),
    y,
    z + radius * Math.sin(angle)
  );
}
/*
 * Random position inside of a circle.
 */
Random position inside of a circle.
Random position inside of a circle .
function position([x, z], max_radius, y = 1.5) {
  let angle = float(0, Math.PI * 2);
  let radius = float(0, max_radius);
  return vec3.of(
    x + radius * Math.cos(angle),
    y,
    z + radius * Math.sin(angle)
  );
}
function position ( [ x , z ] , max_radius , y = 1.5 ) { let angle = float ( 0 , Math . PI * 2 ) ; let radius = float ( 0 , max_radius ) ; return vec3 . of ( x + radius * Math . cos ( angle ) , y , z + radius * Math . sin ( angle ) ) ; }
Random position inside of a circle.
Random position inside of a circle .