scaleTo function

double scaleTo(
  1. double x,
  2. double y,
  3. double t
)

Implementation

double scaleTo(double x, double y, double t ) {
	final r = y - x;
	return t * r + x;
}