summaryrefslogtreecommitdiffstats
path: root/svgbob/src/point.rs
diff options
context:
space:
mode:
Diffstat (limited to 'svgbob/src/point.rs')
-rw-r--r--svgbob/src/point.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/svgbob/src/point.rs b/svgbob/src/point.rs
index 7779650..08e0e12 100644
--- a/svgbob/src/point.rs
+++ b/svgbob/src/point.rs
@@ -70,9 +70,9 @@ impl Point {
}
/// adjust both x and y value by units specified
- pub fn adjust(&self, units: f32) -> Self {
- let t = units * CellGrid::unit_x();
- let u = units * CellGrid::unit_y();
+ pub fn adjust(&self, units_x: f32, units_y: f32) -> Self {
+ let t = units_x * CellGrid::unit_x();
+ let u = units_y * CellGrid::unit_y();
Self::new(self.x + t, self.y + u)
}