aboutsummaryrefslogtreecommitdiff
path: root/src/math/rect.rs
diff options
context:
space:
mode:
authorArne Dußin2020-12-20 03:58:46 +0100
committerArne Dußin2020-12-20 16:41:52 +0100
commit48f321a80970ebeb8374072b1d2e0a4d297aa348 (patch)
tree8f6dbffef7ed507ae118919917fd69a7a9528c39 /src/math/rect.rs
parentc073618d9773216ab4a2dcd7944589f38b1df751 (diff)
downloadgraf_karto-48f321a80970ebeb8374072b1d2e0a4d297aa348.tar.gz
graf_karto-48f321a80970ebeb8374072b1d2e0a4d297aa348.zip
Add dimensional indicator with scaling
Diffstat (limited to 'src/math/rect.rs')
-rw-r--r--src/math/rect.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/math/rect.rs b/src/math/rect.rs
index 50c1cb0..b571644 100644
--- a/src/math/rect.rs
+++ b/src/math/rect.rs
@@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
use std::ops::{Add, AddAssign};
/// Represents a Rectangle with the value type T.
-#[derive(Copy, Clone, Debug, Default, Serialize, Deserialize)]
+#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
pub struct Rect<T: Scalar + Copy> {
/// The x coordinate, or leftmost coordinate of the Rect.
pub x: T,