| 17 | #[derive(Debug, Parser)] |
| 18 | #[clap(name = "point-cloud")] |
| 19 | struct CmdlineOptions { |
| 20 | /// The log level |
| 21 | #[clap(long, default_value_t = tracing::Level::INFO)] |
| 22 | log_level: tracing::Level, |
| 23 | |
| 24 | /// Output file to write result to. Defaults to stdout. |
| 25 | #[clap(short, long)] |
| 26 | output: Option<PathBuf>, |
| 27 | |
| 28 | /// The random seed to use. Use zero to let the tool pick its own random seed. |
| 29 | #[clap(long, default_value = "0")] |
| 30 | seed: u64, |
| 31 | |
| 32 | /// The number of points to generate. |
| 33 | #[clap(short, long)] |
| 34 | points: u64, |
| 35 | |
| 36 | /// Generate a random number of points with mean '--points' |
| 37 | #[clap(short, long)] |
| 38 | random_number: bool, |
| 39 | |
| 40 | /// The random domain to generate points inside. |
| 41 | #[clap(short, long, default_value = "unit-circle", value_enum)] |
| 42 | domain: RandomDomain, |
| 43 | |
| 44 | /// Scale the generated points. |
| 45 | #[clap(short, long, default_value = "1.0")] |
| 46 | scale: f64, |
| 47 | } |
| 48 | |
| 49 | struct Double2 { |
| 50 | x: f64, |
nothing calls this directly
no outgoing calls
no test coverage detected