summaryrefslogtreecommitdiff
path: root/engine/src/camera.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-10-26 21:05:34 +0200
committerHampusM <hampus@hampusmat.com>2023-10-26 21:05:34 +0200
commiteab619bd5cfc520d3962097d16582eae6977d6dc (patch)
treec5a6ab322f33d452733bac233c631eb6a4fbcef9 /engine/src/camera.rs
parent76a3a021402e05823e1f82fd592c853a4a6be563 (diff)
style: increase max struct literal width to 36
Diffstat (limited to 'engine/src/camera.rs')
-rw-r--r--engine/src/camera.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/engine/src/camera.rs b/engine/src/camera.rs
index 9ab95e7..fab92f5 100644
--- a/engine/src/camera.rs
+++ b/engine/src/camera.rs
@@ -83,16 +83,9 @@ impl Camera
pub(crate) fn new() -> Self
{
- let position = Vec3 {
- x: 0.0,
- y: 0.0,
- z: 3.0,
- };
-
- Self {
- position,
- target: Vec3::default(),
- }
+ let position = Vec3 { x: 0.0, y: 0.0, z: 3.0 };
+
+ Self { position, target: Vec3::default() }
}
pub(crate) fn as_matrix(&self) -> Matrix<f32, 4, 4>