Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7765871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T15:16:16+00:00 2026-06-01T15:16:16+00:00

I need to implement a method for non-linear interpolation between values, ease-in, ease-out, general

  • 0

I need to implement a method for non-linear interpolation between values, ease-in, ease-out, general easing curves as well as user defined curves.

I have a basic idea of how to do this – but I am not sure if it will be the most efficient solution. My idea is basically as follows:

Use a 2D cubic, quadratic or n-th order Bezier curve to control the interpolation. Traverse through the curve linearly to get the non-linear Y component, and use that to value to feed a simple linear interpolation method:

value = v1 + (v2 - v1) * t;

Where t is the non-linear Y component of the control curve.

This allows for custom, user defined methods for interpolation, but it comes at a cost, the cost of one non-linear interpolation is equal to:

1 + 2 * (n-1)

total interpolations, where n is the order, or number of control points of the control curve.

I am NO MATHEMATICIAN, this is the best I could come up with, so my question is if there is a better solution?

EDIT: I am probably not explaining it right, I am not a native speaker, so here is something hopefully everyone will understand:
control curve interpolation

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T15:16:17+00:00Added an answer on June 1, 2026 at 3:16 pm

    From what I understand, your t is actually a family of functions fi(u), where both u, and fi(u) are between 0 and 1. If that is the case, it doesn’t get any better than what you’ve already proposed.

    It looks like you are worried about evaluating these fi(u) values during actual curve calculation. There is no avoiding the evaluation if you don’t want to pre-calculate. If performance is a big issue and you don’t need to be very precise, you can calculate tables of fi(uj) for as many uj values as you want (say 100 or 1000 discrete points between 0 and 1) for each of your curves, and when you need a value between your sampling points, do a simple linear interpolation of the two cached values around your desired point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement a method that takes an address split up into individual
I need to implement in my class Invoke() method with the same behavior as
I need to implement a call to a method that I have in my
This is a question about how to implement the equals method when I need
I need to implement a method, which compares two strings for equality, considering some
I need to implement a method that can measure Time and CPU cycles of
I need to implement time calculation for repository methods in my asp .net mvc
I need to implement a custom handler for MVC that gives me the first
I need to implement login velocity checking for a web service. The service is
I need to implement Integrated Windows Authentication for a WCF service hosted on IIS

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.