diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:24:33 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-10-13 13:24:33 +0200 |
| commit | 8680fcd4903b451909a5932e8b948a68c9aacb16 (patch) | |
| tree | 37a195fc77ecee3ec7f17639079f4c7652cde7a4 /src/geom/align.rs | |
| parent | 22697f0c0c858bc013ec5c7d8b3ea50f000246dd (diff) | |
Rename geometric eval and apply to resolve ✏
Diffstat (limited to 'src/geom/align.rs')
| -rw-r--r-- | src/geom/align.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/geom/align.rs b/src/geom/align.rs index 1030a133..422624d8 100644 --- a/src/geom/align.rs +++ b/src/geom/align.rs @@ -13,7 +13,7 @@ pub enum Align { impl Align { /// Returns the position of this alignment in the given range. - pub fn apply(self, range: Range<Length>) -> Length { + pub fn resolve(self, range: Range<Length>) -> Length { match self { Self::Start => range.start, Self::Center => (range.start + range.end) / 2.0, |
