aboutsummaryrefslogtreecommitdiff
path: root/src/scaleable.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/scaleable.rs
parentc073618d9773216ab4a2dcd7944589f38b1df751 (diff)
downloadgraf_karto-48f321a80970ebeb8374072b1d2e0a4d297aa348.tar.gz
graf_karto-48f321a80970ebeb8374072b1d2e0a4d297aa348.zip
Add dimensional indicator with scaling
Diffstat (limited to 'src/scaleable.rs')
-rw-r--r--src/scaleable.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/scaleable.rs b/src/scaleable.rs
deleted file mode 100644
index 450e61e..0000000
--- a/src/scaleable.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use crate::math::Vec2;
-
-/// Trait representing something that covers an area and that can be resized accordingly.
-pub trait Scaleable {
- /// Scale the object by the specified amount in horizontal and vertical direction (right and
- /// downwards).
- ///
- /// # Panics
- /// If at least one of the dimensions is zero or less, the object cannot be scaled and panics.
- fn scale(&mut self, by: &Vec2<f64>);
-}