Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match CPU/GPU logic for start tangents #705

Merged
merged 6 commits into from
Oct 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update vello_encoding/src/path.rs
Improve docstring

Co-authored-by: Daniel McNab <36049421+DJMcNab@users.noreply.github.com>
  • Loading branch information
raphlinus and DJMcNab authored Oct 3, 2024
commit bae8049630cbb472335b5afa7671e0a382defc70
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