Skip to content

Commit

Permalink
Update vello_encoding/src/path.rs
Browse files Browse the repository at this point in the history
Improve docstring

Co-authored-by: Daniel McNab <[email protected]>
  • Loading branch information
raphlinus and DJMcNab authored Oct 3, 2024
1 parent 391b25d commit bae8049
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vello_encoding/src/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ impl<'a> PathEncoder<'a> {
Some(pt)
}

// Similar to `start_tangent_for_curve` but for a line.
/// Similar to [`Self::start_tangent_for_curve`] but for a line.
fn start_tangent_for_line(&self, p1: (f32, f32)) -> Option<(f32, f32)> {
let p0 = (self.first_point[0], self.first_point[1]);
let pt = if (p1.0 - p0.0).abs() > EPSILON || (p1.1 - p0.1).abs() > EPSILON {
Expand Down

0 comments on commit bae8049

Please sign in to comment.