Registry / Library

library · v0.1.1
Nearest Site
Find the first closest planar site by squared Euclidean distance. Return minus one for empty or mismatched coordinate arrays.
Use Nearest Site
use vendor::nearest_site::nearest_site;
Run the example
nest demo nearest_site@0.1.1
blyxc native-run nearest_site-demo/main.blyx
Example source and expected output
use vendor::nearest_site::nearest_site;
fn main() {
println!(nearest_site([0,2,9],[0,0,0],3.0,0.0));
}
Expected output
1
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | 40df1d4cb2 | 7b8802606d5903a05d669d738fc3178b33649602036677963cf36555af15d7a8 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 7eaaa27d4cb6306de12c16f4676901490d3f3ac62bdec6ef027ed2b17f645b1b |