diff --git a/del-geo-core/src/mat2x3_col_major.rs b/del-geo-core/src/mat2x3_col_major.rs index 964258f..cbd3ed8 100644 --- a/del-geo-core/src/mat2x3_col_major.rs +++ b/del-geo-core/src/mat2x3_col_major.rs @@ -22,12 +22,11 @@ where ] } - -pub fn mult_transpose_vec3(a: &[f32;6], v: &[f32]) -> [f32;3] { +pub fn mult_transpose_vec3(a: &[f32; 6], v: &[f32]) -> [f32; 3] { [ a[0] * v[0] + a[1] * v[1], a[2] * v[0] + a[3] * v[1], - a[4] * v[0] + a[5] * v[1] + a[4] * v[0] + a[5] * v[1], ] } diff --git a/del-geo-core/src/vec3.rs b/del-geo-core/src/vec3.rs index 3d86d35..127d2ea 100644 --- a/del-geo-core/src/vec3.rs +++ b/del-geo-core/src/vec3.rs @@ -25,7 +25,7 @@ where impl Vec3 for [Real; 3] where - Real: num_traits::Float + std::ops::MulAssign + Real: num_traits::Float + std::ops::MulAssign, { fn normalize(&self) -> Self { normalize(self) @@ -42,7 +42,9 @@ where fn add(&self, other: &Self) -> Self { add(self, other) } - fn add_in_place(&mut self, other: &Self){ add_in_place (self, other); } + fn add_in_place(&mut self, other: &Self) { + add_in_place(self, other); + } fn dot(&self, other: &Self) -> Real { dot(self, other) } @@ -183,7 +185,7 @@ where pub fn add_in_place(a: &mut [T; 3], b: &[T; 3]) where - T: num_traits::Float + T: num_traits::Float, { a[0] = a[0] + b[0]; a[1] = a[1] + b[1];