summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/vector.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/vector.rs b/core/src/vector.rs
index b550869c..1380c3b3 100644
--- a/core/src/vector.rs
+++ b/core/src/vector.rs
@@ -15,6 +15,11 @@ impl<T> Vector<T> {
}
}
+impl Vector {
+ /// The zero [`Vector`].
+ pub const ZERO: Self = Self::new(0.0, 0.0);
+}
+
impl<T> std::ops::Add for Vector<T>
where
T: std::ops::Add<Output = T>,