CPKit
v1.6.1

Polygon Properties

GeometryMedium

Verify Shoelace Area, Perimeter, and Convexity of closed coordinate shapes.

Alt+Shift+P

Polygon Grid (Drag A, B, C, or D)

A (-3, 3)B (3, 3)C (4, -2)D (-2, -3)
Polygon Area (Shoelace):33.50 sq units
Polygon Perimeter:23.2645 units
Is Convex Shape:Yes (Convex)

Time Complexity

O(N) linear sweep calculations

Space Complexity

O(1) auxiliary
Conceptual Overview

Polygon calculations evaluate boundaries closed segments, computing signed areas, perimeters, and validating convexity shapes.

Mathematical Formula
Area = \frac{1}{2} \left| \sum_{i=1}^{n} (x_i y_{i+1} - x_{i+1} y_i) \right|
Source: CP-Algorithms geometry reference