MoonBit port of georust/geo: 2D planar geospatial primitives and algorithms
///|
test "calculate a triangle area" {
let triangle = @type.Triangle::Triangle(
@type.Coord(0.0, 0.0),
@type.Coord(4.0, 0.0),
@type.Coord(0.0, 6.0),
)
inspect(@geo2d.HasArea::unsigned_area(triangle), content="12")
}moon add totto2727/geo@0.1.3import {
"totto2727/geo/geo/2d" @geo2d,
"totto2727/geo/geo/2d/type" @type,
}Install
Download zipMoonBit port of georust/geo: 2D planar geospatial primitives and algorithms