Fixed area calculation

This commit is contained in:
Cheng Hann Gan 2023-04-03 13:09:03 -04:00
parent 263d14e188
commit 0ae365e478

View file

@ -29,7 +29,7 @@ const areaMap = new Map()
// Modified from https://stackoverflow.com/a/33670691
function calcPolygonArea(vertices) {
const hit = areaMap.get(vertices)
if (hit !== null) {
if (hit) {
return hit
}