{"id":23057556,"url":"https://github.com/bodoni/curve","last_synced_at":"2025-08-15T06:32:44.768Z","repository":{"id":57614922,"uuid":"41618399","full_name":"bodoni/curve","owner":"bodoni","description":"Toolbox for Bézier curves","archived":false,"fork":false,"pushed_at":"2025-01-19T10:53:22.000Z","size":92,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-14T11:51:35.125Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bodoni.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-30T05:57:06.000Z","updated_at":"2025-04-12T07:14:17.000Z","dependencies_parsed_at":"2022-09-11T03:00:38.645Z","dependency_job_id":null,"html_url":"https://github.com/bodoni/curve","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bodoni/curve","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodoni%2Fcurve","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodoni%2Fcurve/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodoni%2Fcurve/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodoni%2Fcurve/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bodoni","download_url":"https://codeload.github.com/bodoni/curve/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bodoni%2Fcurve/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270533886,"owners_count":24602148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-16T02:13:00.525Z","updated_at":"2025-08-15T06:32:44.760Z","avatar_url":"https://github.com/bodoni.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Curve [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]\n\nThe package provides curves.\n\n## Examples\n\nTrace a Bézier curve:\n\n```rust\nuse curve::bezier::Linear;\nuse curve::Trace;\n\nlet curve = (Linear::new(1.0, 5.0), Linear::new(2.0, 3.0));\nlet points = Trace::new(curve, 3).collect::\u003cVec\u003c_\u003e\u003e();\nassert_eq!(points, vec![(1.0, 2.0), (3.0, 2.5), (5.0, 3.0)]);\n```\n\nApproximate a cubic Bézier curve with a sequence of quadratic:\n\n```rust\nuse curve::bezier::goodness::CrudeIndependentAbsolute;\nuse curve::bezier::Cubic;\nuse curve::Approximation;\n\nlet goodness = CrudeIndependentAbsolute::new(1.0, f64::MAX, usize::MAX);\nlet cubic = (Cubic::new(0.0, 0.0, 90.0, 100.0), Cubic::new(0.0, 50.0, 0.0, 0.0));\nlet quadratics = Approximation::new(cubic, goodness).collect::\u003cVec\u003c_\u003e\u003e();\nassert_eq!(quadratics.len(), 4);\n```\n\n## Contribution\n\nYour contribution is highly appreciated. Do not hesitate to open an issue or a\npull request. Note that any contribution submitted for inclusion in the project\nwill be licensed according to the terms given in [LICENSE.md](LICENSE.md).\n\n[build-img]: https://github.com/bodoni/curve/workflows/build/badge.svg\n[build-url]: https://github.com/bodoni/curve/actions/workflows/build.yml\n[documentation-img]: https://docs.rs/curve/badge.svg\n[documentation-url]: https://docs.rs/curve\n[package-img]: https://img.shields.io/crates/v/curve.svg\n[package-url]: https://crates.io/crates/curve\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodoni%2Fcurve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbodoni%2Fcurve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbodoni%2Fcurve/lists"}