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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user