Function generate_point_cloud

Source
pub fn generate_point_cloud<T, const N: usize>(
    num_points: usize,
    ranges: [RangeInclusive<T>; N],
) -> Vec<Point<T, N>> 
Expand description

Generates a randomized points cloud within a specified spherical range.

§Arguments

§Generics

  • T: Either an f32 or f64.
  • N: A const usize, representing the number of dimensions to use.

§Returns

A Vec of Point representing the point cloud.