Skip to content

Commit

Permalink
Fix path signature function
Browse files Browse the repository at this point in the history
  • Loading branch information
KmolYuan committed Feb 18, 2024
1 parent 40c2ba7 commit b3d2054
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/posed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ where
C: Curve<D>,
V: Curve<D>,
{
let (_, geo1) = get_target_pos(curve.as_curve(), is_open);
let (sig, guide) = impl_path_signature(curve, vectors, geo1.inverse());
// Same as `get_target_pos()`
let (mut t, mut coeffs, geo2) = U::get_coeff(&sig, IS_OPEN, 1, Some(&guide));
let geo = geo1 * geo2 * U::coeff_norm(&mut coeffs, Some(&mut t), None);
let (_, geo) = get_target_pos(curve.as_curve(), is_open);
let (sig, guide) = impl_path_signature(curve, vectors, geo.inverse());
let (mut t, mut coeffs, _) = U::get_coeff(&sig, IS_OPEN, 1, Some(&guide));
// Only normalize the target position
U::coeff_norm(&mut coeffs, Some(&mut t), None);
(sig, t, geo)
}

Expand Down

0 comments on commit b3d2054

Please sign in to comment.