Skip to content

Add derivative(t) method to BezierCurve class - #13879

Merged
cclauss merged 5 commits into
TheAlgorithms:masterfrom
nsree0507:bezier-derivative-feature
Sep 10, 2026
Merged

Add derivative(t) method to BezierCurve class#13879
cclauss merged 5 commits into
TheAlgorithms:masterfrom
nsree0507:bezier-derivative-feature

Conversation

@nsree0507

@nsree0507 nsree0507 commented Nov 7, 2025

Copy link
Copy Markdown
Contributor

Describe your change:

  • Add an algorithm?
    Added a derivative(t) method to the BezierCurve class to compute the tangent vector at any point t on the curve. This supports curves of any degree and is useful for animation, motion planning, and curve analysis.

Fixes #13861

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms include at least one URL that points to Wikipedia or another similar explanation.
  • This pull request resolves issue number: Fixes graphics/bezier_curve.py: tangent direction and derivative of the curve #13861

@algorithms-keeper algorithms-keeper Bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Nov 7, 2025
@algorithms-keeper algorithms-keeper Bot added the tests are failing Do not merge until tests pass label Nov 7, 2025
@cclauss

cclauss commented Sep 4, 2026

Copy link
Copy Markdown
Member

Closing "tests are failing" PRs to prepare for Hacktoberfest

@cclauss cclauss closed this Sep 4, 2026
@cclauss cclauss reopened this Sep 10, 2026
@algorithms-keeper algorithms-keeper Bot removed the tests are failing Do not merge until tests pass label Sep 10, 2026
Comment thread graphics/bezier_curve.py Outdated
@algorithms-keeper algorithms-keeper Bot removed the awaiting reviews This PR is ready to be reviewed label Sep 10, 2026
@cclauss
cclauss merged commit 36c8fa2 into TheAlgorithms:master Sep 10, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

graphics/bezier_curve.py: tangent direction and derivative of the curve

2 participants