[PR #215] [MERGED] Core: Add Linear Interpolation Function for Common Types (Numbers, Point, Size, Rect) #237

Closed
opened 2026-05-05 03:43:38 -06:00 by gitea-mirror · 0 comments
Owner

📋 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: masterHead: lerp_templates


📝 Commits (3)

  • fcb6d9e Core: Linear interpolation (Lerp) templates and reference example for (numbers, Point Size and Rect)
  • d8ea464 Merge branch 'ultimatepp:master' into lerp_templates
  • e2898cd Merge 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 Lerp function, along with its specializations for the following types:

  • Numeric types (int, float, double)
  • Point
  • Size
  • Rect

Additionally, a simple reference example is included to demonstrate the usage of the Lerp function.

Please review .


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ultimatepp/ultimatepp/pull/215 **Author:** [@ismail-yilmaz](https://github.com/ismail-yilmaz) **Created:** 11/15/2024 **Status:** ✅ Merged **Merged:** 12/9/2024 **Merged by:** [@mirek-fidler](https://github.com/mirek-fidler) **Base:** `master` ← **Head:** `lerp_templates` --- ### 📝 Commits (3) - [`fcb6d9e`](https://github.com/ultimatepp/ultimatepp/commit/fcb6d9e02c770ad8272527e4bdd8917d46650b23) Core: Linear interpolation (Lerp) templates and reference example for (numbers, Point Size and Rect) - [`d8ea464`](https://github.com/ultimatepp/ultimatepp/commit/d8ea464b99d51559379dbc6f8e0da3b672d9a342) Merge branch 'ultimatepp:master' into lerp_templates - [`e2898cd`](https://github.com/ultimatepp/ultimatepp/commit/e2898cdd0179ee7f82380106a0acca613912d774) Merge branch 'ultimatepp:master' into lerp_templates ### 📊 Changes **3 files changed** (+60 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `reference/LinearInterpolation/LinearInterpolation.cpp` (+19 -0) ➕ `reference/LinearInterpolation/LinearInterpolation.upp` (+11 -0) 📝 `uppsrc/Core/Gtypes.h` (+30 -0) </details> ### 📄 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 `Lerp` function, along with its specializations for the following types: - Numeric types (`int`, `float`, `double`) - `Point` - `Size` - `Rect` Additionally, a simple reference example is included to demonstrate the usage of the `Lerp` function. Please review . --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 03:43:38 -06:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/ultimatepp#237
No description provided.