RFR: 8358820: Allow interpolation outside of range [0,1] [v2]

Michael Strauß mstrauss at openjdk.org
Sun Jun 15 22:09:48 UTC 2025


On Sun, 15 Jun 2025 05:22:13 GMT, Nir Lisker <nlisker at openjdk.org> wrote:

>> Michael Strauß has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   javadoc
>
> modules/javafx.graphics/src/main/java/javafx/animation/Interpolatable.java line 44:
> 
>> 42:  *             <td>Two components are combined by linear interpolation such that the intermediate value is
>> 43:  *                 produced by computing {@code (1 - t) * start + t * end}. This interpolation type is usually
>> 44:  *                 applicable for numeric components.</td>
> 
> I think that the use of "start" and "end" is confusing now since they don't correspond to actual start and end. You can get values that are "after the end". It might be seen more as an extrapolation at this point. In general, this interface now also functions as an extrapolator.

I've added the following sentence:
`Note that this formula produces values less than {@code start} for {@code t < 0} and values greater than {@code end} for {@code t > 1}.`

-------------

PR Review Comment: https://git.openjdk.org/jfx/pull/1822#discussion_r2148839873


More information about the openjfx-dev mailing list