clippify
This commit is contained in:
parent
388b77108e
commit
ecda74f6b2
|
@ -977,7 +977,7 @@ dual_quaternion_op_impl!(
|
||||||
DivAssign, div_assign;
|
DivAssign, div_assign;
|
||||||
(U4, U1), (U4, U1);
|
(U4, U1), (U4, U1);
|
||||||
self: UnitDualQuaternion<N>, rhs: &'b UnitQuaternion<N>;
|
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());
|
let res = &*self * UnitDualQuaternion::from_rotation(rhs.inverse());
|
||||||
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);
|
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);
|
||||||
|
@ -1013,7 +1013,7 @@ dual_quaternion_op_impl!(
|
||||||
DivAssign, div_assign;
|
DivAssign, div_assign;
|
||||||
(U4, U1), (U4, U1);
|
(U4, U1), (U4, U1);
|
||||||
self: UnitDualQuaternion<N>, rhs: &'b Translation3<N>;
|
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());
|
let res = &*self * UnitDualQuaternion::from_parts(rhs.inverse(), UnitQuaternion::identity());
|
||||||
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);
|
self.as_mut_unchecked().real.coords.copy_from(&res.as_ref().real.coords);
|
||||||
|
|
|
@ -25,7 +25,7 @@ quickcheck!(
|
||||||
fn multiply_equals_alga_transform(
|
fn multiply_equals_alga_transform(
|
||||||
dq: UnitDualQuaternion<f64>,
|
dq: UnitDualQuaternion<f64>,
|
||||||
v: Vector3<f64>,
|
v: Vector3<f64>,
|
||||||
p: Point3<f64>,
|
p: Point3<f64>
|
||||||
) -> bool {
|
) -> bool {
|
||||||
dq * v == dq.transform_vector(&v)
|
dq * v == dq.transform_vector(&v)
|
||||||
&& dq * p == dq.transform_point(&p)
|
&& dq * p == dq.transform_point(&p)
|
||||||
|
|
Loading…
Reference in New Issue