This commit is contained in:
Terence 2021-01-28 18:50:34 -05:00
parent 388b77108e
commit ecda74f6b2
2 changed files with 3 additions and 3 deletions

View File

@ -977,7 +977,7 @@ dual_quaternion_op_impl!(
DivAssign, div_assign;
(U4, U1), (U4, U1);
self: UnitDualQuaternion<N>, rhs: &'b UnitQuaternion<N>;
#[allow(clippy::suspicious_arithmetic_impl)]
#[allow(clippy::suspicious_op_assign_impl)]
{
let res = &*self * UnitDualQuaternion::from_rotation(rhs.inverse());
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);
@ -1013,7 +1013,7 @@ dual_quaternion_op_impl!(
DivAssign, div_assign;
(U4, U1), (U4, U1);
self: UnitDualQuaternion<N>, rhs: &'b Translation3<N>;
#[allow(clippy::suspicious_arithmetic_impl)]
#[allow(clippy::suspicious_op_assign_impl)]
{
let res = &*self * UnitDualQuaternion::from_parts(rhs.inverse(), UnitQuaternion::identity());
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);

View File

@ -25,7 +25,7 @@ quickcheck!(
fn multiply_equals_alga_transform(
dq: UnitDualQuaternion<f64>,
v: Vector3<f64>,
p: Point3<f64>,
p: Point3<f64>
) -> bool {
dq * v == dq.transform_vector(&v)
&& dq * p == dq.transform_point(&p)