diff options
Diffstat (limited to 'src/math')
| -rw-r--r-- | src/math/polygon.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/math/polygon.rs b/src/math/polygon.rs index 5711049..5cf8104 100644 --- a/src/math/polygon.rs +++ b/src/math/polygon.rs @@ -1,9 +1,10 @@ use super::{PolygonGraph, Vec2}; use nalgebra::{ClosedDiv, ClosedMul, ClosedSub, RealField, Scalar}; use num_traits::Zero; +use serde::{Deserialize, Serialize}; use std::ops::Neg; -#[derive(Debug)] +#[derive(Debug, Deserialize, Serialize, PartialEq)] // TODO: Support polygons with holes pub struct Polygon<T: Scalar + Copy> { pub corners: Vec<Vec2<T>>, |
