kinetic
Class PaceInOut
java.lang.Object
|
+--kinetic.TimeFilter
|
+--kinetic.PaceInOut
- All Implemented Interfaces:
- java.io.Serializable
- public class PaceInOut
- extends TimeFilter
Time filter that will perform a slow-in slow-out pacing operation on a system. In and out range between (0,0) = slow start and stop, (1,1) = fast start and stop
- See Also:
- Serialized Form
Field Summary |
kinetic.KineticProperty |
in
maintains starting speed |
kinetic.KineticProperty |
out
maintains ending speed |
Constructor Summary |
PaceInOut(double new_in,
double new_out,
double dur)
creates a new instance of PaceInout |
Method Summary |
double |
apply(double time)
performs calculation on input vluae of time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
public kinetic.KineticProperty in
- maintains starting speed
out
public kinetic.KineticProperty out
- maintains ending speed
PaceInOut
public PaceInOut(double new_in,
double new_out,
double dur)
- creates a new instance of PaceInout
- Parameters:
new_in
- start speednew_out
- end speeddur
- lifespan - ms
apply
public double apply(double time)
- performs calculation on input vluae of time
- Specified by:
apply
in class TimeFilter
- Parameters:
time
- input value of time
- Returns:
- processed output value of time