mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
[PR #215] [MERGED] Core: Add Linear Interpolation Function for Common Types (Numbers, Point, Size, Rect) #237
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ultimatepp#237
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ultimatepp/ultimatepp/pull/215
Author: @ismail-yilmaz
Created: 11/15/2024
Status: ✅ Merged
Merged: 12/9/2024
Merged by: @mirek-fidler
Base:
master← Head:lerp_templates📝 Commits (3)
fcb6d9eCore: Linear interpolation (Lerp) templates and reference example for (numbers, Point Size and Rect)d8ea464Merge branch 'ultimatepp:master' into lerp_templatese2898cdMerge branch 'ultimatepp:master' into lerp_templates📊 Changes
3 files changed (+60 additions, -0 deletions)
View changed files
➕
reference/LinearInterpolation/LinearInterpolation.cpp(+19 -0)➕
reference/LinearInterpolation/LinearInterpolation.upp(+11 -0)📝
uppsrc/Core/Gtypes.h(+30 -0)📄 Description
Linear interpolation (Lerp) is a widely used method for smoothly transitioning between two values. It's commonly applied in fields such as UI development, animations, and geometry manipulation.
This pull request introduces a generic
Lerpfunction, along with its specializations for the following types:int,float,double)PointSizeRectAdditionally, a simple reference example is included to demonstrate the usage of the
Lerpfunction.Please review .
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.