// Copyright Marcus Del Favero 2025
// Licensed under the GNU AGPLv3 with an exception, see `README.md` for details
use glam::Vec2;
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize)]
pub struct Polygon { // Both pos and area are cached results
	pub pos: Vec2, // The centroid (centre of mass of the polygon)
	pub size: f32, // Square root of area
	pub vertices: Vec<Vec2>,
}
