summaryrefslogtreecommitdiff
path: root/src/geom
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-04-08 15:01:55 +0200
committerLaurenz <laurmaedje@gmail.com>2022-04-08 15:01:55 +0200
commit977ac77e6a3298be2644a8231e93acbef9f7f396 (patch)
tree9c40765b862bc583275f692113fe36924c323ccc /src/geom
parente1d7edb7c1845e6df6f5e23e3baf7bc88159eade (diff)
Start & end alignment
Diffstat (limited to 'src/geom')
-rw-r--r--src/geom/align.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/align.rs b/src/geom/align.rs
index be2eac96..3d5f96e5 100644
--- a/src/geom/align.rs
+++ b/src/geom/align.rs
@@ -45,7 +45,7 @@ impl Align {
}
/// Returns the position of this alignment in the given length.
- pub fn resolve(self, length: Length) -> Length {
+ pub fn position(self, length: Length) -> Length {
match self {
Self::Left | Self::Top => Length::zero(),
Self::Center | Self::Horizon => length / 2.0,