Interface Interpolatable<T>
- All Known Implementing Classes:
-
Color,Point2D,Point3D
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Interpolatable<T>
A value that can be interpolated. It defines single
interpolate(Object, double) method, which returns interpolated value of given fraction.- Since:
- JavaFX 2.0
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
T |
interpolate |
The function calculates an interpolated value along the fraction t between 0.0 and 1.0. |
Method Details
interpolate
T interpolate(T endValue, double t)
The function calculates an interpolated value along the fraction
t between 0.0 and 1.0. When t = 1.0, endVal is returned.- Parameters:
-
endValue- target value -
t- fraction between0.0and1.0 - Returns:
- interpolated value
© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.