aboutsummaryrefslogtreecommitdiff
path: root/src/core/vector3.rs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2021-02-08 18:26:27 +0100
committerJulian T <julian@jtle.dk>2021-02-08 18:27:00 +0100
commit7ccc82fc0992fc23aee354d687ce009ae0523bea (patch)
tree635f7ffe386c638ef8d5ca0db81a3da8ef0f7cc0 /src/core/vector3.rs
parentdbe5f54957ddc13549a6ce822da95170aa09a0c6 (diff)
Finish depth of field
Diffstat (limited to 'src/core/vector3.rs')
-rw-r--r--src/core/vector3.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/vector3.rs b/src/core/vector3.rs
index 1ae4db2..24b84e9 100644
--- a/src/core/vector3.rs
+++ b/src/core/vector3.rs
@@ -108,6 +108,8 @@ impl<T: Number> fmt::Display for Vector3<T> {
}
impl Vector3f {
+ pub const ZERO: Self = Vector3f {x: 0.0, y: 0.0, z: 0.0};
+
/// Calculates the length times itself
///
/// This is faster than using len * len as the square is ommited