diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-01-22 17:16:42 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-01-22 17:16:42 +0100 |
| commit | ac788f2082711161ec8208eede04d9a2bae02241 (patch) | |
| tree | b139e41d327af906163c0b177d402b855c04507e /src/geom/linear.rs | |
| parent | 0de4f3ed7bb20a94fd58f93b0793d3b5a8e13972 (diff) | |
Many more expressions 🥗
Boolean, equality, comparison and assignment expression parsing and evaluation.
Diffstat (limited to 'src/geom/linear.rs')
| -rw-r--r-- | src/geom/linear.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/geom/linear.rs b/src/geom/linear.rs index 5638517b..05990096 100644 --- a/src/geom/linear.rs +++ b/src/geom/linear.rs @@ -26,9 +26,9 @@ impl Linear { self.rel.resolve(length) + self.abs } - /// Whether this linear's relative part is zero. - pub fn is_absolute(self) -> bool { - self.rel == Relative::ZERO + /// Whether both parts are zero. + pub fn is_zero(self) -> bool { + self.rel.is_zero() && self.abs.is_zero() } } |
