Registry / Library

library · v0.1.1
Polygon Double Area
Compute the absolute doubled area of a simple planar polygon from its vertex coordinates using the shoelace sum.
Use Polygon Double Area
use vendor::polygon_double_area::polygon_double_area;
Run the example
nest demo polygon_double_area@0.1.1
blyxc native-run polygon_double_area-demo/main.blyx
Example source and expected output
use vendor::polygon_double_area::polygon_double_area;
fn main() {
println!(polygon_double_area([0,2,2,0],[0,0,3,3]));
}
Expected output
12
Published versions
| Version | Package | Source commit | SHA-256 |
|---|---|---|---|
| 0.1.1 | Download ZIP · Browse files | f25a62b775 | 49efa20dc6e320c30c0a22f587a1e177427db5bc02365908c321486d6f97d627 |
| 0.1.0 | Download ZIP · Browse files | 6349f23784 | 080efd0660f0701cda108945d95ee0f6fc937016761d3117870d65daa5706740 |