interpolate

fun interpolate(from: Triangle, to: Triangle, by: Float)

Sets this triangle with the result of interpolation from one triangle to another triangle by a factor.

Parameters

from

the triangle from which the interpolation starts.

to

the triangle at which the interpolation ends.

by

the interpolation factor which is expected to be in the range of [0, 1].