Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
juliablbr committed Oct 10, 2024
1 parent 83cfed5 commit 405b351
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions nidhogg/src/backend/lola.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ use crate::{
DisconnectExt, Error, HardwareInfo, NaoBackend, NaoControlMessage, NaoState, Result,
};

use nalgebra::{Vector2, Vector3};
use nalgebra::{vector, Vector2, Vector3};

use rmp_serde::{encode, from_slice};
use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -489,20 +489,13 @@ impl FromLoLA<[f32; 14]> for Touch {

impl FromLoLA<[f32; 2]> for Vector2<f32> {
fn from_lola(value: [f32; 2]) -> Self {
nalgebra::vector! [
value[0],
value[1],
]
vector![value[0], value[1]]
}
}

impl FromLoLA<[f32; 3]> for Vector3<f32> {
fn from_lola(value: [f32; 3]) -> Self {
nalgebra::vector! [
value[0],
value[1],
value[2],
]
vector![value[0], value[1], value[2]]
}
}

Expand Down

0 comments on commit 405b351

Please sign in to comment.