This function returns the result of linearly interpolating the start and end values, with
fraction representing the proportion between the start and end values.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
Causes the current thread to wait until it is awakened, typically
by being notified or interrupted, or until a
certain amount of real time has elapsed.
This function returns the result of linearly interpolating the start and end values, with
fraction representing the proportion between the start and end values.
This function returns the result of linearly interpolating the start and end values, with
fraction representing the proportion between the start and end values. The
calculation is a simple parametric calculation: result = x0 + t * (x1 - x0),
where x0 is startValue, x1 is endValue,
and t is fraction.
Parameters
fraction
float: The fraction from the starting to the ending values
startValue
Integer: The start value; should be of type int or
Integer
endValue
Integer: The end value; should be of type int or Integer
A linear interpolation between the start and end values, given the
fraction parameter.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-02-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]