Skip to content

Commit

Permalink
chore: fmt
Browse files Browse the repository at this point in the history
i should really auto fmt lol
  • Loading branch information
juliapaci committed Aug 7, 2024
1 parent 861dd7f commit b8d5405
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bezpath.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ impl Vector for VelloBezPath {
let a = current.lerp(p1, t);
let b = p1.lerp(p2, t);
(b.y - a.y).atan2(b.x - a.x)
},
}
PathEl::CurveTo(p1, p2, p3) => {
let a = current.lerp(p1, t);
let b = p1.lerp(p2, t);
Expand All @@ -152,7 +152,7 @@ impl Vector for VelloBezPath {
let d = a.lerp(b, t);
let e = b.lerp(c, t);
(d.y - e.y).atan2(d.x - e.x)
},
}
_ => {
// cant do f64::EPSILON cause of precision issues
let before = interp_pathel(current, path.1, t - f32::EPSILON as f64)
Expand Down

0 comments on commit b8d5405

Please sign in to comment.