From c201407306856eb96a2f71aa7612a7634b1235e5 Mon Sep 17 00:00:00 2001 From: Mark Mine Date: Tue, 15 May 2001 23:28:59 +0000 Subject: [PATCH] *** empty log message *** --- direct/src/interval/LerpInterval.py | 22 ++++------------------ 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/direct/src/interval/LerpInterval.py b/direct/src/interval/LerpInterval.py index 6cb4eda239..c5f8ccfdf8 100644 --- a/direct/src/interval/LerpInterval.py +++ b/direct/src/interval/LerpInterval.py @@ -281,28 +281,14 @@ class LerpFunctionInterval(Interval): """ # Note, this is temporary until blend functions get exposed import LerpBlendHelpers - def easeIn(t): - x = t*t - return ((3 * x) - (t * x)) * 0.5 - def easeOut(t): - return ((3 * t) - (t * t * t)) * 0.5 - def easeInOut(t): - x = t*t - return (3 * x) - (2 * t * x) - def noBlend(t): - return t if (blendType == "easeIn"): - #return LerpBlendHelpers.LerpBlendHelpers.easeIn - return easeIn + return LerpBlendHelpers.LerpBlendHelpers.easeIn elif (blendType == "easeOut"): - #return LerpBlendHelpers.LerpBlendHelpers.easeOut - return easeOut + return LerpBlendHelpers.LerpBlendHelpers.easeOut elif (blendType == "easeInOut"): - #return LerpBlendHelpers.LerpBlendHelpers.easeInOut - return easeInOut + return LerpBlendHelpers.LerpBlendHelpers.easeInOut elif (blendType == "noBlend"): - #return LerpBlendHelpers.LerpBlendHelpers.noBlend - return noBlend + return LerpBlendHelpers.LerpBlendHelpers.noBlend else: raise Exception( 'Error: LerpInterval.__getBlend: Unknown blend type')