Let our functions escape the bondage of integers and vary freely with time.

git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@364 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
Par Winzell
2007-12-04 19:22:21 +00:00
parent 0ed263a6ee
commit 9f3092e63a
3 changed files with 8 additions and 8 deletions
@@ -33,14 +33,14 @@ public class LinearFunc extends InterpFunc
}
// from InterpFunc
override public function getValue (complete :Number) :int
override public function getValue (complete :Number) :Number
{
if (complete >= 1) {
return _end;
} else if (complete < 0) { // cope with a funny startOffset
return _start;
} else {
return int((_end - _start) * complete) + _start;
return ((_end - _start) * complete) + _start;
}
}