polygonarea

package
v0.0.0-...-5d524ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 22, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Area

func Area(points []vec2.Vec2) (area int)

Area calculates the area of a polygon with integer coordinates

Note: This function requires that all points are one unit apart i.e. you can't go from (0, 0) to (0, 10) in one step, but must go (0, 0) -> (0, 1) -> (0, 2) -> ... -> (0, 10)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL