{"id":22342646,"url":"https://github.com/ltmx/csharp-polynomial-easing-functions","last_synced_at":"2026-03-07T06:03:05.779Z","repository":{"id":128693059,"uuid":"280901354","full_name":"ltmx/CSharp-Polynomial-Easing-Functions","owner":"ltmx","description":"C# Ternary, Quintic, Heptic, Nonic, Hendecic, Smoothing Math Functions","archived":false,"fork":false,"pushed_at":"2023-03-13T22:37:28.000Z","size":364,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-07T20:52:32.724Z","etag":null,"topics":["csharp","functions","math","math-library","mathematics","quintic","smoothing-functions","smoothstep","unity","unity-mathematics","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ltmx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-07-19T16:05:10.000Z","updated_at":"2025-08-06T15:02:05.000Z","dependencies_parsed_at":"2023-04-05T05:02:48.117Z","dependency_job_id":null,"html_url":"https://github.com/ltmx/CSharp-Polynomial-Easing-Functions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ltmx/CSharp-Polynomial-Easing-Functions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FCSharp-Polynomial-Easing-Functions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FCSharp-Polynomial-Easing-Functions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FCSharp-Polynomial-Easing-Functions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FCSharp-Polynomial-Easing-Functions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ltmx","download_url":"https://codeload.github.com/ltmx/CSharp-Polynomial-Easing-Functions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ltmx%2FCSharp-Polynomial-Easing-Functions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["csharp","functions","math","math-library","mathematics","quintic","smoothing-functions","smoothstep","unity","unity-mathematics","unity3d"],"created_at":"2024-12-04T08:13:18.139Z","updated_at":"2026-03-07T06:03:05.771Z","avatar_url":"https://github.com/ltmx.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# C# Polynomial Easing Functions\nC# cubic (smoothstep), Quintic (degree 5), Heptic (degree 7), Nonic (degree 9), Hendecic (degree 11)\nEasing Math Functions\n\n\u003cimg src=\"Unity%20Polynomial%20Easing%20Functions.png\" alt=\"C# Polynomial Easing Functions\" \u003e\n\n\n# Code\n\nFunctions and their derivatives\n\n```csharp\npublic static class Easing\n{\n    static float smoothstep(float x) =\u003e x * x * (3 - 2 * x);\n    static float smoothstepD(float x) =\u003e 6 * x * (1 - x); // Derivative\n\n    static float smoothstep5(float x) =\u003e x * x * x * (x * (6 * x - 15) + 10);\n    static float smoothstep5D(float x) =\u003e 30 * x * x * (x * (x - 2) + 1); // Derivative\n\n\n    static float smoothstep7(float x) =\u003e x * x * x * x * (x * (x * (-20 * x + 70) - 84) + 35);\n    static float smootherstep7D(float x) =\u003e 140 * x * x * x * (x * (x * (-x + 3) - 3) + 1); // Derivative\n\n\n    static float smoothstep9(float x) =\u003e x * x * x * x * x * (x * (x * (x * (70 * x - 315) + 540) - 420) + 126);\n    static float smoothstep9D(float x) =\u003e 630 * x * x * x * x * (x * (x * (x * (x - 4) + 6) - 4) + 1); // Derivative\n\n    static float smoothstep11(float x) =\u003e x * x * x * x * x * x * (x * (x * (x * (x * (-252 * x + 1386) - 3080) + 3465) - 1980) + 462);\n    static float smoothstep11D(float x) =\u003e 2772 * x * x * x * x * x * (x * (x * (x * (x * (-x + 5) - 10) + 10) - 5) + 1); // Derivative\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltmx%2Fcsharp-polynomial-easing-functions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fltmx%2Fcsharp-polynomial-easing-functions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fltmx%2Fcsharp-polynomial-easing-functions/lists"}