Skip to content

arc: implement ParamCurve - #378

Merged
waywardmonkeys merged 1 commit into
linebender:mainfrom
waywardmonkeys:param-curve-and-arclen-for-arc
Mar 16, 2026
Merged

arc: implement ParamCurve#378
waywardmonkeys merged 1 commit into
linebender:mainfrom
waywardmonkeys:param-curve-and-arclen-for-arc

Conversation

@waywardmonkeys

@waywardmonkeys waywardmonkeys commented Sep 14, 2024

Copy link
Copy Markdown
Contributor

Implement ParamCurve for Arc and update path_elements to start
from Arc::start().

Add regression tests covering endpoint and midpoint evaluation,
rotated ellipses, reversed arcs, negative sweeps, and tiny sweeps.

@DJMcNab DJMcNab left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't comment on the maths

Comment thread CHANGELOG.md Outdated
Comment thread src/arc.rs Outdated
Comment thread src/arc.rs Outdated
Comment thread src/arc.rs Outdated
@waywardmonkeys
waywardmonkeys force-pushed the param-curve-and-arclen-for-arc branch 2 times, most recently from 2e62c35 to 0101de3 Compare March 16, 2026 04:30
@waywardmonkeys waywardmonkeys changed the title Impl ParamCurve, ParamCurveArclen for Arc arc: add direct evaluation helpers and implement ParamCurve Mar 16, 2026

@tomcur tomcur left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good. Some clean up nits inline.

Comment thread kurbo/src/arc.rs Outdated
Comment thread kurbo/src/arc.rs Outdated
Comment thread kurbo/src/arc.rs Outdated
Implement `ParamCurve` for `Arc` and update `path_elements` to start
from `Arc::start()`.

Add regression tests covering endpoint and midpoint evaluation,
rotated ellipses, reversed arcs, negative sweeps, and tiny sweeps.
@waywardmonkeys
waywardmonkeys force-pushed the param-curve-and-arclen-for-arc branch from 0101de3 to 8bd623a Compare March 16, 2026 12:47
@waywardmonkeys waywardmonkeys changed the title arc: add direct evaluation helpers and implement ParamCurve arc: implement ParamCurve Mar 16, 2026
@waywardmonkeys
waywardmonkeys requested a review from tomcur March 16, 2026 12:48
@waywardmonkeys
waywardmonkeys added this pull request to the merge queue Mar 16, 2026
Merged via the queue into linebender:main with commit 5610501 Mar 16, 2026
15 checks passed
@waywardmonkeys
waywardmonkeys deleted the param-curve-and-arclen-for-arc branch March 16, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants