Documentation ¶ Index ¶ func Area(points []vec2.Vec2) (area int) 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. Source Files ¶ View all Source files area.go Click to show internal directories. Click to hide internal directories.