Blyx Nest Blyx language
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.

Source repository · Package JSON

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

VersionPackageSource commitSHA-256
0.1.1Download ZIP · Browse filesf25a62b77549efa20dc6e320c30c0a22f587a1e177427db5bc02365908c321486d6f97d627
0.1.0Download ZIP · Browse files6349f23784080efd0660f0701cda108945d95ee0f6fc937016761d3117870d65daa5706740