MCPcopy Create free account
hub / github.com/csaez/mscreen / linearInterpolate

Function linearInterpolate

mscreen.py:690–697  ·  view source on GitHub ↗

Performs a linear interpolation between p0 and p1.

(t, p0, p1)

Source from the content-addressed store, hash-verified

688
689
690def linearInterpolate(t, p0, p1):
691 """
692 Performs a linear interpolation between p0 and p1.
693 """
694 if _isIterable(p0):
695 p0 = om2.MVector(p0)
696 p1 = om2.MVector(p1)
697 return p0 + ((p1 - p0) * t)
698
699
700def bezierInterpolate(t, points):

Callers

nothing calls this directly

Calls 1

_isIterableFunction · 0.85

Tested by

no test coverage detected