interpolated

open fun interpolated(to: Ray, by: Float): Ray

Returns a copy of this ray interpolated to other ray by a factor.

Parameters

to

the ray to which this ray is interpolated.

by

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